Skip to content

Commit 01d7584

Browse files
committed
fix incorrect test
1 parent b0976b2 commit 01d7584

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/engine/tests/src/index.test.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,15 @@ describe('Engine', () => {
353353
},
354354
});
355355

356-
expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))).toEqual({
357-
rule: ['a1'],
358-
});
356+
expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))['rule']).toHaveLength(1)
359357

360358
engine.clearUsedIds('file1.ts');
361359

362360
expect(engine['usedIds']).toEqual({
363361
'file1.ts': {},
364362
});
365363

366-
expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))).toEqual({});
364+
expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))['rule']).toHaveLength(0);
367365
});
368366

369367
describe('identifiers', () => {

0 commit comments

Comments
 (0)