import { EnumSetTp, SessionState } from "../src/protocol/sessionstate"; describe("SessionState", () => { // it("Should accept ENUM values as strings (flags)", () => { // const flags = CommaSp; // const withFlags: SessionState = { // sessionID: "test", // login: "test", // startTime: Date.now().toString(), // flags: `${SessionFlag.ADMIN},${SessionFlag.HASFSK18CHAT}`, // }; // }); it("Should accept ENUM values as strings (setTp)", () => { const withSetTp: SessionState = { sessionID: "test", login: "test", startTime: Date.now().toString(), setTp: EnumSetTp.OFFLINE, }; }); });