@@ -10,21 +10,21 @@ test('Parse with "conventional-changelog-angular" by default', async t => {
1010 t . is ( releaseType , 'minor' ) ;
1111} ) ;
1212
13- test ( 'Accept preset option' , async t => {
13+ test ( 'Accept " preset" option' , async t => {
1414 const commits = [ { message : 'Fix: First fix (fixes #123)' } , { message : 'Update: Second feature (fixes #456)' } ] ;
1515 const releaseType = await pify ( commitAnalyzer ) ( { preset : 'eslint' } , { commits} ) ;
1616
1717 t . is ( releaseType , 'minor' ) ;
1818} ) ;
1919
20- test ( 'Accept config option' , async t => {
20+ test ( 'Accept " config" option' , async t => {
2121 const commits = [ { message : 'Fix: First fix (fixes #123)' } , { message : 'Update: Second feature (fixes #456)' } ] ;
2222 const releaseType = await pify ( commitAnalyzer ) ( { config : 'conventional-changelog-eslint' } , { commits} ) ;
2323
2424 t . is ( releaseType , 'minor' ) ;
2525} ) ;
2626
27- test ( 'Accept a parseOpts object as option' , async t => {
27+ test ( 'Accept a " parseOpts" object as option' , async t => {
2828 const commits = [
2929 { message : '##BUGFIX## First fix (fixes #123)' } ,
3030 { message : '##FEATURE## Second feature (fixes #456)' } ,
@@ -37,7 +37,7 @@ test('Accept a parseOpts object as option', async t => {
3737 t . is ( releaseType , 'minor' ) ;
3838} ) ;
3939
40- test ( 'Accept a partial parseOpts object as option' , async t => {
40+ test ( 'Accept a partial " parseOpts" object as option' , async t => {
4141 const commits = [ { message : '##fix## First fix (fixes #123)' } , { message : '##Update## Second feature (fixes #456)' } ] ;
4242 const releaseType = await pify ( commitAnalyzer ) (
4343 {
@@ -87,7 +87,7 @@ test('Allow to use regex in commitTypes configuration', async t => {
8787 t . is ( releaseType , 'minor' ) ;
8888} ) ;
8989
90- test ( 'Return null if no rule match' , async t => {
90+ test ( 'Return " null" if no rule match' , async t => {
9191 const commits = [ { message : 'doc: doc update' } , { message : 'chore: Chore' } ] ;
9292 const releaseType = await pify ( commitAnalyzer ) ( { } , { commits} ) ;
9393
@@ -117,7 +117,7 @@ test('Process rules in order and apply highest match from config even if default
117117 t . is ( releaseType , 'minor' ) ;
118118} ) ;
119119
120- test ( 'Use default commitTypes if none of provided match' , async t => {
120+ test ( 'Use default " commitTypes" if none of provided match' , async t => {
121121 const commits = [ { message : 'Chore: First chore' } , { message : 'Update: new feature' } ] ;
122122 const releaseType = await pify ( commitAnalyzer ) (
123123 { preset : 'eslint' , commitTypes : [ { tag : 'Chore' , release : 'patch' } ] } ,
@@ -127,7 +127,7 @@ test('Use default commitTypes if none of provided match', async t => {
127127 t . is ( releaseType , 'minor' ) ;
128128} ) ;
129129
130- test ( 'Throw SemanticReleaseError if "preset" doesn`t exist' , async t => {
130+ test ( 'Throw " SemanticReleaseError" if "preset" doesn`t exist' , async t => {
131131 const error = await t . throws (
132132 pify ( commitAnalyzer ) ( { preset : 'unknown-preset' } , { } ) ,
133133 / P r e s e t : " u n k n o w n - p r e s e t " d o e s n o t e x i s t : /
@@ -137,7 +137,7 @@ test('Throw SemanticReleaseError if "preset" doesn`t exist', async t => {
137137 t . is ( error . code , 'MODULE_NOT_FOUND' ) ;
138138} ) ;
139139
140- test ( 'Throw SemanticReleaseError if "commitTypes" is not an Array or a String' , async t => {
140+ test ( 'Throw " SemanticReleaseError" if "commitTypes" is not an Array or a String' , async t => {
141141 const error = await t . throws (
142142 pify ( commitAnalyzer ) ( { commitTypes : { } } , { } ) ,
143143 / E r r o r i n s r - c o m m i t - a n a l y z e r c o n f i g u r a t i o n : " c o m m i t T y p e s " m u s t b e a n a r r a y o f r u l e s /
@@ -147,7 +147,7 @@ test('Throw SemanticReleaseError if "commitTypes" is not an Array or a String',
147147 t . is ( error . code , 'EINVALIDCONFIG' ) ;
148148} ) ;
149149
150- test ( 'Throw SemanticReleaseError if "commitTypes" commitTypes option reference a requierable module that is not an Array or a String' , async t => {
150+ test ( 'Throw " SemanticReleaseError" if "commitTypes" option reference a requierable module that is not an Array or a String' , async t => {
151151 const error = await t . throws (
152152 pify ( commitAnalyzer ) ( { commitTypes : './test/fixtures/commit-types-invalid' } , { } ) ,
153153 / E r r o r i n s r - c o m m i t - a n a l y z e r c o n f i g u r a t i o n : " c o m m i t T y p e s " m u s t b e a n a r r a y o f r u l e s /
@@ -157,7 +157,7 @@ test('Throw SemanticReleaseError if "commitTypes" commitTypes option reference a
157157 t . is ( error . code , 'EINVALIDCONFIG' ) ;
158158} ) ;
159159
160- test ( 'Throw SemanticReleaseError if "config" doesn`t exist' , async t => {
160+ test ( 'Throw " SemanticReleaseError" if "config" doesn`t exist' , async t => {
161161 const commits = [ { message : 'Fix: First fix (fixes #123)' } , { message : 'Update: Second feature (fixes #456)' } ] ;
162162 const error = await t . throws (
163163 pify ( commitAnalyzer ) ( { config : 'unknown-config' } , { commits} ) ,
@@ -168,7 +168,7 @@ test('Throw SemanticReleaseError if "config" doesn`t exist', async t => {
168168 t . is ( error . code , 'MODULE_NOT_FOUND' ) ;
169169} ) ;
170170
171- test ( 'Throw SemanticReleaseError if "commitTypes" reference invalid commit type' , async t => {
171+ test ( 'Throw " SemanticReleaseError" if "commitTypes" reference invalid commit type' , async t => {
172172 const error = await t . throws (
173173 pify ( commitAnalyzer ) ( { preset : 'eslint' , commitTypes : [ { tag : 'Update' , release : 'invalid' } ] } , { } ) ,
174174 / E r r o r i n s r - c o m m i t - a n a l y z e r c o n f i g u r a t i o n : " i n v a l i d " i s n o t a v a l i d r e l e a s e t y p e \. V a l i d v a l u e s a r e : \[ ? .* \] /
@@ -178,7 +178,7 @@ test('Throw SemanticReleaseError if "commitTypes" reference invalid commit type'
178178 t . true ( error instanceof SemanticReleaseError ) ;
179179} ) ;
180180
181- test ( 'Handle error in "conventional-changelog-parser" and wrap in SemanticReleaseError' , async t => {
181+ test ( 'Handle error in "conventional-changelog-parser" and wrap in " SemanticReleaseError" ' , async t => {
182182 const commits = [ { message : 'Fix: First fix (fixes #123)' } , { message : 'Update: Second feature (fixes #456)' } ] ;
183183 const error = await t . throws (
184184 pify ( commitAnalyzer ) ( { parserOpts : { headerPattern : '\\' } } , { commits} ) ,
0 commit comments