This repository was archived by the owner on Feb 5, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ var parserOpts = {
22
22
'scope' ,
23
23
'subject'
24
24
] ,
25
- noteKeywords : 'BREAKING CHANGE' ,
25
+ noteKeywords : [ 'BREAKING CHANGE' , 'BREAKING CHANGES' ] ,
26
26
revertPattern : / ^ r e v e r t : \s ( [ \s \S ] * ?) \s * T h i s r e v e r t s c o m m i t ( \w * ) \. / ,
27
27
revertCorrespondence : [ 'header' , 'hash' ]
28
28
} ;
Original file line number Diff line number Diff line change @@ -121,6 +121,24 @@ describe('angular preset', function() {
121
121
} ) ) ;
122
122
} ) ;
123
123
124
+ it ( 'should BREAKING CHANGES the same as BREAKING CHANGE' , function ( done ) {
125
+ gitDummyCommit ( [ 'feat(deps): bump' , 'BREAKING CHANGES: Also works :)' ] ) ;
126
+
127
+ conventionalChangelogCore ( {
128
+ config : preset
129
+ } )
130
+ . on ( 'error' , function ( err ) {
131
+ done ( err ) ;
132
+ } )
133
+ . pipe ( through ( function ( chunk ) {
134
+ chunk = chunk . toString ( ) ;
135
+
136
+ expect ( chunk ) . to . include ( 'Also works :)' ) ;
137
+
138
+ done ( ) ;
139
+ } ) ) ;
140
+ } ) ;
141
+
124
142
it ( 'should work if there is a semver tag' , function ( done ) {
125
143
var i = 0 ;
126
144
@@ -173,5 +191,4 @@ describe('angular preset', function() {
173
191
done ( ) ;
174
192
} ) ) ;
175
193
} ) ;
176
-
177
194
} ) ;
You can’t perform that action at this time.
0 commit comments