mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
clean up data structures
This commit is contained in:
parent
53639a8448
commit
d04aa83258
9 changed files with 61 additions and 42 deletions
|
|
@ -23,7 +23,7 @@ import {
|
|||
} from '@app/websocket';
|
||||
import type { WebSocketConnectOptions } from '@app/websocket';
|
||||
import { PROTOCOL_VERSION } from '../../../src/websocket/config';
|
||||
import { initWebClient } from '@app/api';
|
||||
import { createWebClientRequest, createWebClientResponse } from '@app/api';
|
||||
|
||||
import {
|
||||
buildResponse,
|
||||
|
|
@ -196,7 +196,7 @@ installMockWebSocket();
|
|||
|
||||
beforeEach(() => {
|
||||
vi.useFakeTimers();
|
||||
initWebClient();
|
||||
new WebClient(createWebClientRequest(), createWebClientResponse());
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue