@@ -43,23 +43,23 @@ describe('dependency check', () => {
43
43
44
44
it ( 'should pass when there are no missing deps' , async ( ) => {
45
45
await expect (
46
- execa ( bin , [ 'dependency-check' , '-u' , 'false' ] , {
46
+ execa ( bin , [ 'dependency-check' ] , {
47
47
cwd : path . join ( __dirname , 'fixtures/dependency-check/pass' )
48
48
} )
49
49
) . to . eventually . be . fulfilled ( )
50
50
} )
51
51
52
52
it ( 'should pass when there are no missing deps in an esm project' , async ( ) => {
53
53
await expect (
54
- execa ( bin , [ 'dependency-check' , '-u' , 'false' ] , {
54
+ execa ( bin , [ 'dependency-check' ] , {
55
55
cwd : path . join ( __dirname , 'fixtures/dependency-check/esm-pass' )
56
56
} )
57
57
) . to . eventually . be . fulfilled ( )
58
58
} )
59
59
60
60
it ( 'should pass when there are no missing deps in an ts project' , async ( ) => {
61
61
await expect (
62
- execa ( bin , [ 'dependency-check' , '-u' , 'false' ] , {
62
+ execa ( bin , [ 'dependency-check' ] , {
63
63
cwd : path . join ( __dirname , 'fixtures/dependency-check/ts-pass' )
64
64
} )
65
65
) . to . eventually . be . fulfilled ( )
@@ -68,11 +68,9 @@ describe('dependency check', () => {
68
68
it ( 'should check unused' , async ( ) => {
69
69
await expect (
70
70
execa ( bin , [ 'dependency-check' ] , {
71
- cwd : path . join ( __dirname , 'fixtures/dependency-check/pass ' )
71
+ cwd : path . join ( __dirname , 'fixtures/dependency-check/fail-unused ' )
72
72
} )
73
- ) . to . eventually . be . rejected . with . property ( 'message' ) . that . include (
74
- 'Unused production dependencies: \npico'
75
- )
73
+ ) . to . eventually . be . rejectedWith ( 'pico' )
76
74
} )
77
75
78
76
/**
0 commit comments