diff --git a/test/suite.ts b/test/suite.ts index 309c1ba..8f64396 100644 --- a/test/suite.ts +++ b/test/suite.ts @@ -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(); diff --git a/test/webaudio.test.ts b/test/webaudio.test.ts index e8d54bf..52567e4 100644 --- a/test/webaudio.test.ts +++ b/test/webaudio.test.ts @@ -1,5 +1,5 @@ -import { suite } from './suite'; import { filters } from '../src'; +import { suite } from './suite'; suite(false); @@ -11,4 +11,4 @@ describe(`filters.DistortionFilter`, () => expect(filter.amount).toBe(0.5); }); -}); \ No newline at end of file +});