mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
test: fix voice secretbox tests
This commit is contained in:
@@ -76,6 +76,7 @@
|
|||||||
"prettier": "^2.4.1",
|
"prettier": "^2.4.1",
|
||||||
"standard-version": "^9.3.2",
|
"standard-version": "^9.3.2",
|
||||||
"tsup": "^5.11.11",
|
"tsup": "^5.11.11",
|
||||||
|
"tweetnacl": "^1.0.3",
|
||||||
"typedoc": "^0.22.8",
|
"typedoc": "^0.22.8",
|
||||||
"typescript": "^4.4.4"
|
"typescript": "^4.4.4"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
import { methods } from '../Secretbox';
|
import { methods } from '../Secretbox';
|
||||||
jest.mock(
|
|
||||||
'tweetnacl',
|
jest.mock('tweetnacl');
|
||||||
() => ({
|
|
||||||
secretbox: {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
||||||
open() {},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
{ virtual: true },
|
|
||||||
);
|
|
||||||
|
|
||||||
test('Does not throw error with a package installed', () => {
|
test('Does not throw error with a package installed', () => {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
|
|||||||
Reference in New Issue
Block a user