chore: fix eslint errors introduced across phases 1-3
This commit is contained in:
@@ -13,11 +13,11 @@ const {
|
||||
writeTextSpy,
|
||||
} = vi.hoisted(() => ({
|
||||
openSpy: vi.fn(),
|
||||
wsInstances: [] as Array<{
|
||||
wsInstances: [] as {
|
||||
url: string;
|
||||
send: ReturnType<typeof vi.fn>;
|
||||
close: ReturnType<typeof vi.fn>;
|
||||
}>,
|
||||
}[],
|
||||
fetchSpy: vi.fn(),
|
||||
fitSpy: vi.fn(),
|
||||
selectionHandlers: [] as (() => void)[],
|
||||
@@ -110,17 +110,23 @@ beforeEach(() => {
|
||||
fetchSpy.mockResolvedValue({
|
||||
ok: true,
|
||||
status: 200,
|
||||
json: async () => ({ url: 'ws://x' }),
|
||||
text: async () => '',
|
||||
json: () => Promise.resolve({ url: 'ws://x' }),
|
||||
text: () => Promise.resolve(''),
|
||||
});
|
||||
vi.stubGlobal('WebSocket', FakeWebSocket);
|
||||
vi.stubGlobal('fetch', fetchSpy);
|
||||
vi.stubGlobal(
|
||||
'ResizeObserver',
|
||||
class {
|
||||
observe() {}
|
||||
disconnect() {}
|
||||
unobserve() {}
|
||||
observe() {
|
||||
/* noop */
|
||||
}
|
||||
disconnect() {
|
||||
/* noop */
|
||||
}
|
||||
unobserve() {
|
||||
/* noop */
|
||||
}
|
||||
},
|
||||
);
|
||||
Object.defineProperty(document, 'fonts', {
|
||||
|
||||
Reference in New Issue
Block a user