mirror of
https://github.com/nvms/prsm.git
synced 2025-12-15 15:50:53 +00:00
validate presence state shape
This commit is contained in:
parent
960616b3fb
commit
fde46ad338
@ -92,6 +92,8 @@ describe("Presence State", () => {
|
||||
// check that client1 got the state clear
|
||||
expect(callback).toHaveBeenCalledTimes(3);
|
||||
expect(updates[2].type).toBe("state");
|
||||
expect(updates[2].roomName).toBeDefined();
|
||||
expect(updates[2].timestamp).toBeDefined();
|
||||
expect(updates[2].state).toBeNull();
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user