Skip to content

Commit 4fa4a03

Browse files
committed
Split angular test
1 parent b5f426c commit 4fa4a03

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/knip/test/plugins/angular3.test.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,30 @@ import baseCounters from '../helpers/baseCounters.js';
77

88
const cwd = resolve('fixtures/plugins/angular3');
99

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({
1212
...baseArguments,
1313
cwd,
1414
});
1515

16-
assert(nonProdIssues.devDependencies['package.json']['@angular/cli']);
16+
assert(issues.devDependencies['package.json']['@angular/cli']);
1717

18-
assert.deepEqual(nonProdCounters, {
18+
assert.deepEqual(counters, {
1919
...baseCounters,
2020
devDependencies: 1,
2121
processed: 8,
2222
total: 8,
2323
});
24+
});
2425

25-
const { counters: prodCounters } = await main({
26+
test('Find dependencies with the Angular plugin (production)', async () => {
27+
const { counters } = await main({
2628
...baseArguments,
2729
isProduction: true,
2830
cwd,
2931
});
3032

31-
assert.deepEqual(prodCounters, {
33+
assert.deepEqual(counters, {
3234
...baseCounters,
3335
processed: 4,
3436
total: 4,

0 commit comments

Comments
 (0)