@@ -24,14 +24,11 @@ test('uses seed as configured', async t => {
24
24
test ( 'uses seed with parserPreset' , async t => {
25
25
t . context . back = chdir ( 'fixtures/parser-preset' ) ;
26
26
27
- const actual = await load ( { parserPreset : './conventional-changelog-custom' } ) ;
28
- t . deepEqual ( actual . parserPreset , {
29
- name : './conventional-changelog-custom' ,
30
- path : './conventional-changelog-custom.js' ,
31
- opts : {
32
- parserOpts : {
33
- headerPattern : / ^ ( \w * ) (?: \( ( .* ) \) ) ? - ( .* ) $ /
34
- }
27
+ const { parserPreset : actual } = await load ( { parserPreset : './conventional-changelog-custom' } ) ;
28
+ t . is ( actual . name , './conventional-changelog-custom' ) ;
29
+ t . deepEqual ( actual . opts , {
30
+ parserOpts : {
31
+ headerPattern : / ^ ( \w * ) (?: \( ( .* ) \) ) ? - ( .* ) $ /
35
32
}
36
33
} ) ;
37
34
} ) ;
@@ -71,7 +68,6 @@ test('parser preset overwrites completely instead of merging', async t => {
71
68
const actual = await load ( ) ;
72
69
73
70
t . is ( actual . parserPreset . name , './custom' ) ;
74
- t . is ( actual . parserPreset . path , './custom.js' ) ;
75
71
t . is ( typeof actual . parserPreset . opts , 'object' ) ;
76
72
t . deepEqual ( actual . parserPreset . opts , {
77
73
b : 'b' ,
@@ -86,7 +82,6 @@ test('recursive extends with parserPreset', async t => {
86
82
const actual = await load ( ) ;
87
83
88
84
t . is ( actual . parserPreset . name , './conventional-changelog-custom' ) ;
89
- t . is ( actual . parserPreset . path , './first-extended/second-extended/conventional-changelog-custom.js' ) ;
90
85
t . is ( typeof actual . parserPreset . opts , 'object' ) ;
91
86
t . deepEqual ( actual . parserPreset . opts . parserOpts . headerPattern , / ^ ( \w * ) (?: \( ( .* ) \) ) ? - ( .* ) $ / ) ;
92
87
} ) ;
0 commit comments