diff --git a/nodejs/test/roomCode.test.ts b/nodejs/test/roomCode.test.ts new file mode 100644 index 0000000..b9be311 --- /dev/null +++ b/nodejs/test/roomCode.test.ts @@ -0,0 +1,21 @@ +import { SDK } from "../src"; +import { TEST_ROOM_ID } from "./testCommon"; + +let hms: SDK; + +beforeEach(() => { + hms = new SDK(); +}); + +describe("room codes service", () => { + test.skip("creates room codes and then get them", async () => { + const roomCodes = await hms.roomCodes.create(TEST_ROOM_ID); + const roomCodesFromSameRoom = hms.roomCodes.list(roomCodes[0].room_id); + + let index = 0; + for await (const roomCode of roomCodesFromSameRoom) { + expect(roomCodes).toContainEqual(roomCode); + index++; + } + }); +});