Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
conorriches committed Nov 7, 2024
1 parent 43b33db commit e711d72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/containers/WebComponentLoader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ describe("When no user is in state", () => {
justLoaded: false,
user: null,
saveTriggered: false,
reactAppApiEndpoint: "http://localhost:3009",
});
});

Expand Down Expand Up @@ -339,6 +340,7 @@ describe("When no user is in state", () => {
hasShownSavePrompt: true,
justLoaded: false,
saveTriggered: false,
reactAppApiEndpoint: "http://localhost:3009",
});
});

Expand Down Expand Up @@ -491,6 +493,7 @@ describe("When user is in state", () => {

test("Calls useProjectPersistence hook with correct attributes", () => {
expect(useProjectPersistence).toHaveBeenCalledWith({
reactAppApiEndpoint: "http://localhost:3009",
user,
project: { components: [] },
hasShownSavePrompt: true,
Expand Down

0 comments on commit e711d72

Please sign in to comment.