Skip to content

Commit

Permalink
Fix missing deviceId mock in test
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed Feb 1, 2024
1 parent 010d835 commit fc04258
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/app-tests/loading-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ describe("loading:", function () {
localStorage.setItem("mx_is_url", "http://localhost");
localStorage.setItem("mx_access_token", "access_token");
localStorage.setItem("mx_user_id", "@me:localhost");
localStorage.setItem("mx_device_id", "QWERTYUIOP");
localStorage.setItem("mx_last_room_id", "!last_room:id");

// Create a crypto store as well to satisfy storage consistency checks
Expand Down Expand Up @@ -403,6 +404,7 @@ describe("loading:", function () {
})
.respond(200, {
user_id: "@guest:localhost",
device_id: "QWERTYUIOP",
access_token: "secret_token",
});

Expand Down

0 comments on commit fc04258

Please sign in to comment.