mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
refactor: use eslint-config-neon for packages. (#8579)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { MockAgent, setGlobalDispatcher } from 'undici';
|
||||
import type { Interceptable } from 'undici/types/mock-interceptor';
|
||||
import { MockAgent, setGlobalDispatcher, type Interceptable } from 'undici';
|
||||
import { beforeEach, afterEach, test, expect } from 'vitest';
|
||||
import { genPath } from './util';
|
||||
import { REST } from '../src';
|
||||
import { REST } from '../src/index.js';
|
||||
import { genPath } from './util.js';
|
||||
|
||||
const api = new REST();
|
||||
|
||||
@@ -35,7 +34,7 @@ test('no token', async () => {
|
||||
});
|
||||
|
||||
test('negative offset', () => {
|
||||
const badREST = new REST({ offset: -5000 });
|
||||
const badREST = new REST({ offset: -5_000 });
|
||||
|
||||
expect(badREST.requestManager.options.offset).toEqual(0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user