Skip to content

Commit

Permalink
feat: add test for room codes
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-with-a-bushido committed Apr 4, 2023
1 parent 520b3e4 commit afc0be4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nodejs/test/roomCode.test.ts
Original file line number Diff line number Diff line change
@@ -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++;
}
});
});

0 comments on commit afc0be4

Please sign in to comment.