-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
520b3e4
commit afc0be4
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++; | ||
} | ||
}); | ||
}); |