@@ -14,24 +14,27 @@ test('Verify "npmPublish", "tarballDir" and "pkgRoot" options', async t => {
14
14
15
15
test ( 'Return SemanticReleaseError if "npmPublish" option is not a Boolean' , async t => {
16
16
const npmPublish = 42 ;
17
- const [ error ] = await verify ( { npmPublish} , { } , t . context . logger ) ;
17
+ const [ error , ... errors ] = await verify ( { npmPublish} , { } , t . context . logger ) ;
18
18
19
+ t . is ( errors . length , 0 ) ;
19
20
t . is ( error . name , 'SemanticReleaseError' ) ;
20
21
t . is ( error . code , 'EINVALIDNPMPUBLISH' ) ;
21
22
} ) ;
22
23
23
24
test ( 'Return SemanticReleaseError if "tarballDir" option is not a String' , async t => {
24
25
const tarballDir = 42 ;
25
- const [ error ] = await verify ( { tarballDir} , { } , t . context . logger ) ;
26
+ const [ error , ... errors ] = await verify ( { tarballDir} , { } , t . context . logger ) ;
26
27
28
+ t . is ( errors . length , 0 ) ;
27
29
t . is ( error . name , 'SemanticReleaseError' ) ;
28
30
t . is ( error . code , 'EINVALIDTARBALLDIR' ) ;
29
31
} ) ;
30
32
31
33
test ( 'Return SemanticReleaseError if "pkgRoot" option is not a String' , async t => {
32
34
const pkgRoot = 42 ;
33
- const [ error ] = await verify ( { pkgRoot} , { } , t . context . logger ) ;
35
+ const [ error , ... errors ] = await verify ( { pkgRoot} , { } , t . context . logger ) ;
34
36
37
+ t . is ( errors . length , 0 ) ;
35
38
t . is ( error . name , 'SemanticReleaseError' ) ;
36
39
t . is ( error . code , 'EINVALIDPKGROOT' ) ;
37
40
} ) ;
0 commit comments