File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const messages = {
8
8
standardScopeWith : `type(scope): subject.\n` ,
9
9
nonStandardScopeWith : 'type.scope: subject.\n' ,
10
10
ellipsisMessage : 'test: subject ends with ellipsis...' ,
11
+ superShortMsg : 'ok' ,
11
12
} ;
12
13
13
14
const parsed = {
@@ -17,6 +18,7 @@ const parsed = {
17
18
standardScopeWith : parse ( messages . standardScopeWith ) ,
18
19
nonStandardScopeWith : parse ( messages . nonStandardScopeWith ) ,
19
20
ellipsisMessage : parse ( messages . ellipsisMessage ) ,
21
+ superShortMsg : parse ( messages . superShortMsg ) ,
20
22
} ;
21
23
22
24
test ( 'empty against "always" should succeed' , async ( ) => {
@@ -80,3 +82,10 @@ test('ellipsis is not fullstop so commit title ending with it against "never ."
80
82
const expected = true ;
81
83
expect ( actual ) . toEqual ( expected ) ;
82
84
} ) ;
85
+
86
+ test ( 'super short title still works' , async ( ) => {
87
+ const [ actual ] = subjectFullStop ( await parsed . superShortMsg , 'never' , '.' ) ;
88
+ const expected = true ;
89
+ expect ( actual ) . toEqual ( expected ) ;
90
+ } ) ;
91
+
You can’t perform that action at this time.
0 commit comments