mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
* chore: vitest config * feat: vitest * fix: do not actually create ws * chore: config * chore: lockfile * chore: revert downgrade, up node * chore: package - 'git add -A' * chore: delete mock-socket * chore: delete mock-socket * fix: lockfile --------- Co-authored-by: almeidx <github@almeidx.dev> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
10 lines
276 B
TypeScript
10 lines
276 B
TypeScript
import { test, expect, vitest } from 'vitest';
|
|
import { methods } from '../src/util/Secretbox';
|
|
|
|
vitest.mock('tweetnacl');
|
|
|
|
test('Does not throw error with a package installed', () => {
|
|
// @ts-expect-error We are testing
|
|
expect(() => methods.open()).toThrow(TypeError);
|
|
});
|