login.test.ts 412 Bytes
import { expect } from "chai";
import { RoomManager } from "../room/RoomManager";
import { SocketTester } from "./util/SocketTester";

describe("로그인", () => {
  it("로그인합니다", () => {
    const roomManager = new RoomManager();
    const socket = new SocketTester(roomManager);
    socket.testOk("login", { username: "guest" });
    expect(socket.connection.user?.username).eq("guest");
  });
});