@@ -7,15 +7,17 @@ const messages = {
7
7
body : 'chore: subject\nbody' ,
8
8
trailing : 'chore: subject\nbody\n\n' ,
9
9
without : 'chore: subject\nbody\nBREAKING CHANGE: something important' ,
10
- with : 'chore: subject\nbody\n\nBREAKING CHANGE: something important'
10
+ with : 'chore: subject\nbody\n\nBREAKING CHANGE: something important' ,
11
+ withMulitLine : 'chore: subject\nmulti\nline\nbody\n\nBREAKING CHANGE: something important'
11
12
} ;
12
13
13
14
const parsed = {
14
15
simple : parse ( messages . simple ) ,
15
16
body : parse ( messages . body ) ,
16
17
trailing : parse ( messages . trailing ) ,
17
18
without : parse ( messages . without ) ,
18
- with : parse ( messages . with )
19
+ with : parse ( messages . with ) ,
20
+ withMulitLine : parse ( messages . withMulitLine )
19
21
} ;
20
22
21
23
test ( 'with simple message should succeed for empty keyword' , t => {
@@ -107,3 +109,21 @@ test('with blank line before footer should succeed for "always"', t => {
107
109
const expected = true ;
108
110
t . is ( actual , expected ) ;
109
111
} ) ;
112
+
113
+ test . failing ( 'with blank line before footer and multiline body should succeed for empty keyword' , t => {
114
+ const [ actual ] = footerLeadingBlank ( parsed . withMulitLine ) ;
115
+ const expected = true ;
116
+ t . is ( actual , expected ) ;
117
+ } ) ;
118
+
119
+ test . failing ( 'with blank line before footer and multiline body should fail for "never"' , t => {
120
+ const [ actual ] = footerLeadingBlank ( parsed . withMulitLine , 'never' ) ;
121
+ const expected = false ;
122
+ t . is ( actual , expected ) ;
123
+ } ) ;
124
+
125
+ test . failing ( 'with blank line before footer and multiline body should succeed for "always"' , t => {
126
+ const [ actual ] = footerLeadingBlank ( parsed . withMulitLine , 'always' ) ;
127
+ const expected = true ;
128
+ t . is ( actual , expected ) ;
129
+ } ) ;
0 commit comments