Skip to content

Commit

Permalink
fix incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zn4rK committed Apr 14, 2024
1 parent b0976b2 commit 01d7584
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/engine/tests/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,15 @@ describe('Engine', () => {
},
});

expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))).toEqual({
rule: ['a1'],
});
expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))['rule']).toHaveLength(1)

engine.clearUsedIds('file1.ts');

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

expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))).toEqual({});
expect(engine.getItems(engine.getCacheIds(engine.getUsedFilePaths()))['rule']).toHaveLength(0);
});

describe('identifiers', () => {
Expand Down

0 comments on commit 01d7584

Please sign in to comment.