Skip to content

Commit

Permalink
Fix: Resolve lint issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Feb 15, 2024
1 parent fbf9b82 commit 0b25b8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ function suite(useLegacy = false): void

if (useLegacy)
{
// eslint-disable-next-line @typescript-eslint/no-empty-function
const spy = jest.spyOn(console, 'warn').mockImplementation(() => { });

expect((instance as any).filters).toBe(null);
expect((instance2 as any).filters).toBe(null);
spy.mockRestore();
Expand Down
4 changes: 2 additions & 2 deletions test/webaudio.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { suite } from './suite';
import { filters } from '../src';
import { suite } from './suite';

suite(false);

Expand All @@ -11,4 +11,4 @@ describe(`filters.DistortionFilter`, () =>

expect(filter.amount).toBe(0.5);
});
});
});

0 comments on commit 0b25b8b

Please sign in to comment.