mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
fix unit tests and refactor types
This commit is contained in:
parent
decebc25c7
commit
fea21b5057
75 changed files with 908 additions and 501 deletions
|
|
@ -1,16 +1,6 @@
|
|||
vi.mock('../../WebClient', () => ({
|
||||
WebClient: {
|
||||
instance: {
|
||||
protobuf: { sendGameCommand: vi.fn() },
|
||||
response: { game: {} },
|
||||
},
|
||||
},
|
||||
}));
|
||||
vi.mock('../../WebClient');
|
||||
|
||||
import { WebClient } from '../../WebClient';
|
||||
import { useWebClientCleanup } from '../../__mocks__/helpers';
|
||||
|
||||
useWebClientCleanup();
|
||||
import { create, setExtension } from '@bufbuild/protobuf';
|
||||
import {
|
||||
Command_AttachCard_ext,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue