File tree 1 file changed +8
-6
lines changed
packages/knip/test/plugins
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -7,28 +7,30 @@ import baseCounters from '../helpers/baseCounters.js';
7
7
8
8
const cwd = resolve ( 'fixtures/plugins/angular3' ) ;
9
9
10
- test ( 'Find dependencies with the Angular plugin (production vs non-production)' , async ( ) => {
11
- const { issues : nonProdIssues , counters : nonProdCounters } = await main ( {
10
+ test ( 'Find dependencies with the Angular plugin (non-production)' , async ( ) => {
11
+ const { issues, counters } = await main ( {
12
12
...baseArguments ,
13
13
cwd,
14
14
} ) ;
15
15
16
- assert ( nonProdIssues . devDependencies [ 'package.json' ] [ '@angular/cli' ] ) ;
16
+ assert ( issues . devDependencies [ 'package.json' ] [ '@angular/cli' ] ) ;
17
17
18
- assert . deepEqual ( nonProdCounters , {
18
+ assert . deepEqual ( counters , {
19
19
...baseCounters ,
20
20
devDependencies : 1 ,
21
21
processed : 8 ,
22
22
total : 8 ,
23
23
} ) ;
24
+ } ) ;
24
25
25
- const { counters : prodCounters } = await main ( {
26
+ test ( 'Find dependencies with the Angular plugin (production)' , async ( ) => {
27
+ const { counters } = await main ( {
26
28
...baseArguments ,
27
29
isProduction : true ,
28
30
cwd,
29
31
} ) ;
30
32
31
- assert . deepEqual ( prodCounters , {
33
+ assert . deepEqual ( counters , {
32
34
...baseCounters ,
33
35
processed : 4 ,
34
36
total : 4 ,
You can’t perform that action at this time.
0 commit comments