Code quality improvements and cleanup + Implemented ChatService
Some checks failed
Setup testing environment and test the code / build (push) Has been cancelled
Some checks failed
Setup testing environment and test the code / build (push) Has been cancelled
This commit is contained in:
14
tests/webSocketHandler.test.ts
Normal file
14
tests/webSocketHandler.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {describe, it} from "vitest";
|
||||
import {WebSocketHandler} from "../src/core/webSocketHandler";
|
||||
|
||||
const WEBSOCKET_HANDLER_TESTING_USER_ID = "000000000000000000000000"
|
||||
const WEBSOCKET_HANDLER_TESTING_USER_TOKEN = "testingToken"
|
||||
|
||||
describe("WebSocketHandler", () => {
|
||||
it("should connect", async () => {
|
||||
await WebSocketHandler.getInstance().connect(
|
||||
WEBSOCKET_HANDLER_TESTING_USER_ID,
|
||||
WEBSOCKET_HANDLER_TESTING_USER_TOKEN
|
||||
)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user