We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3df3a5 commit 7d4e11aCopy full SHA for 7d4e11a
server/tests/unit/storage.spec.ts
@@ -52,14 +52,16 @@ describe("Storage: Room Spec", () => {
52
expect(room).toBeDefined();
53
expect(typeof room).toEqual("object");
54
expect(room).not.toBeInstanceOf(DbRoom);
55
- expect(room).toMatchObject({
56
- name: "example",
57
- title: "Example Room",
58
- description: "This is an example room.",
59
- visibility: Visibility.Public,
60
- queueMode: QueueMode.Vote,
61
- owner: null,
62
- });
+ expect(room).toEqual(
+ expect.objectContaining({
+ name: "example",
+ title: "Example Room",
+ description: "This is an example room.",
+ visibility: Visibility.Public,
+ queueMode: QueueMode.Vote,
+ owner: null,
63
+ })
64
+ );
65
});
66
67
it("should return room object from room name, case insensitive", async () => {
0 commit comments