mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-03 08:37:44 -08:00
cleanup and unit tests (#4434)
* put socket.updateHistory behind SessionCommand * rename /websocket files from .tsx to .ts * add unit tests to websocket commands * complete unit tests for webClient commands * secure wss Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
7
webclient/src/setupTests.ts
Normal file
7
webclient/src/setupTests.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import protobuf from "protobufjs";
|
||||
|
||||
class MockProtobufRoot {
|
||||
load() {}
|
||||
}
|
||||
|
||||
(protobuf as any).Root = MockProtobufRoot;
|
||||
Reference in New Issue
Block a user