test: fix voice secretbox tests

This commit is contained in:
iCrawl
2022-01-08 23:16:38 +01:00
parent b593bd32a9
commit 4a2dbd6238
2 changed files with 3 additions and 10 deletions

View File

@@ -1,14 +1,6 @@
import { methods } from '../Secretbox';
jest.mock(
'tweetnacl',
() => ({
secretbox: {
// eslint-disable-next-line @typescript-eslint/no-empty-function
open() {},
},
}),
{ virtual: true },
);
jest.mock('tweetnacl');
test('Does not throw error with a package installed', () => {
// @ts-expect-error