mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
test: fix voice secretbox tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user