@@ -17,23 +17,23 @@ describe('create release issue', () => {
17
17
} ) ;
18
18
19
19
it ( 'parses commit' , ( ) => {
20
- expect ( parseCommit ( `abcdefg fix(javascript): fix the thing` ) ) . toEqual ( {
21
- hash : 'abcdefg ' ,
20
+ expect ( parseCommit ( `b2501882 fix(javascript): fix the thing` ) ) . toEqual ( {
21
+ hash : 'b2501882 ' ,
22
22
lang : 'javascript' ,
23
23
message : 'fix the thing' ,
24
- raw : 'abcdefg fix(javascript): fix the thing' ,
24
+ raw : 'b2501882 fix(javascript): fix the thing' ,
25
25
type : 'fix' ,
26
26
} ) ;
27
27
} ) ;
28
28
29
29
it ( 'returns error when language scope is missing' , ( ) => {
30
- expect ( parseCommit ( `abcdefg fix: fix the thing` ) ) . toEqual ( {
30
+ expect ( parseCommit ( `b2501882 fix: fix the thing` ) ) . toEqual ( {
31
31
error : 'missing-language-scope' ,
32
32
} ) ;
33
33
} ) ;
34
34
35
35
it ( 'returns error when language scope is unknown' , ( ) => {
36
- expect ( parseCommit ( `abcdefg fix(basic): fix the thing` ) ) . toEqual ( {
36
+ expect ( parseCommit ( `b2501882 fix(basic): fix the thing` ) ) . toEqual ( {
37
37
error : 'unknown-language-scope' ,
38
38
} ) ;
39
39
} ) ;
@@ -125,11 +125,11 @@ describe('create release issue', () => {
125
125
} ,
126
126
commits : [
127
127
{
128
- hash : 'abcdefg ' ,
128
+ hash : 'b2501882 ' ,
129
129
type : 'feat' ,
130
130
lang : 'javascript' ,
131
131
message : 'update the API (BREAKING CHANGE)' ,
132
- raw : 'abcdefg feat(javascript): update the API (BREAKING CHANGE)' ,
132
+ raw : 'b2501882 feat(javascript): update the API (BREAKING CHANGE)' ,
133
133
} ,
134
134
] ,
135
135
} ) ;
@@ -152,11 +152,11 @@ describe('create release issue', () => {
152
152
} ,
153
153
commits : [
154
154
{
155
- hash : 'abcdefg ' ,
155
+ hash : 'b2501882 ' ,
156
156
type : 'feat' ,
157
157
lang : 'php' ,
158
158
message : 'update the API' ,
159
- raw : 'abcdefg feat(php): update the API' ,
159
+ raw : 'b2501882 feat(php): update the API' ,
160
160
} ,
161
161
] ,
162
162
} ) ;
@@ -179,11 +179,11 @@ describe('create release issue', () => {
179
179
} ,
180
180
commits : [
181
181
{
182
- hash : 'abcdefg ' ,
182
+ hash : 'b2501882 ' ,
183
183
type : 'fix' ,
184
184
lang : 'java' ,
185
185
message : 'fix some bug' ,
186
- raw : 'abcdefg fix(java): fix some bug' ,
186
+ raw : 'b2501882 fix(java): fix some bug' ,
187
187
} ,
188
188
] ,
189
189
} ) ;
@@ -206,11 +206,11 @@ describe('create release issue', () => {
206
206
} ,
207
207
commits : [
208
208
{
209
- hash : 'abcdefg ' ,
209
+ hash : 'b2501882 ' ,
210
210
type : 'fix' ,
211
211
lang : 'java' ,
212
212
message : 'fix some bug' ,
213
- raw : 'abcdefg fix(java): fix some bug' ,
213
+ raw : 'b2501882 fix(java): fix some bug' ,
214
214
} ,
215
215
] ,
216
216
} ) ;
@@ -235,11 +235,11 @@ describe('create release issue', () => {
235
235
} ,
236
236
commits : [
237
237
{
238
- hash : 'abcdefg ' ,
238
+ hash : 'b2501882 ' ,
239
239
type : 'chore' ,
240
240
lang : 'javascript' ,
241
241
message : 'update devDevpendencies' ,
242
- raw : 'abcdefg chore(javascript): update devDevpendencies' ,
242
+ raw : 'b2501882 chore(javascript): update devDevpendencies' ,
243
243
} ,
244
244
] ,
245
245
} ) ;
0 commit comments