Skip to content

Commit

Permalink
Add test for ignoreList prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Mar 1, 2024
1 parent 0af6443 commit 7298cd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/trace-mapping.test.ts
Expand Up @@ -152,6 +152,11 @@ describe('TraceMap', () => {
});
});

it('ignoreList', () => {
const tracer = new TraceMap(replaceField(map, 'ignoreList', [0]));
assert.deepEqual(tracer.ignoreList, [0]);
});

describe('isIgnored', () => {
it('returns false if no ignoreList', () => {
const tracer = new TraceMap(replaceField(map, 'ignoreList', undefined));
Expand Down

0 comments on commit 7298cd5

Please sign in to comment.