mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
fix tests
This commit is contained in:
parent
eb3e06f5d3
commit
323efca180
1 changed files with 5 additions and 2 deletions
|
|
@ -190,7 +190,8 @@ describe("Rooms", () => {
|
||||||
|
|
||||||
describe("roomExists", () => {
|
describe("roomExists", () => {
|
||||||
it("should return true if room exists", async () => {
|
it("should return true if room exists", async () => {
|
||||||
const title = "test room";
|
const title = "TEST ROOM";
|
||||||
|
const userId = '66fc70bea1b9e87655cf17c9';
|
||||||
|
|
||||||
collection.findOne.mockResolvedValue({ title });
|
collection.findOne.mockResolvedValue({ title });
|
||||||
|
|
||||||
|
|
@ -203,7 +204,9 @@ describe("Rooms", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return false if room does not exist", async () => {
|
it("should return false if room does not exist", async () => {
|
||||||
const title = "nonexistent room";
|
const title = "NONEXISTENT ROOM";
|
||||||
|
const userId = '66fc70bea1b9e87655cf17c9';
|
||||||
|
|
||||||
collection.findOne.mockResolvedValue(null);
|
collection.findOne.mockResolvedValue(null);
|
||||||
|
|
||||||
const result = await rooms.roomExists(title);
|
const result = await rooms.roomExists(title);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue