Skip to content

Commit

Permalink
fix: Updated snapshot for UTs on users component tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
am-ons committed Jun 17, 2024
1 parent ec9e152 commit f7acfa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions server/tests/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe("Config setup", () => {
expect(config.ProjectId).toBe("mock-project");
expect(config.ServerPark).toBe("mock-server-park");
expect(config.BlaiseApiUrl).toBe("http://mock");
expect(config.RoleToServerParksMap).not.toBeNull();
});

it("should return variables with default string if variables are not defined", () => {
Expand All @@ -30,5 +31,6 @@ describe("Config setup", () => {
expect(config.ProjectId).toBe("ENV_VAR_NOT_SET");
expect(config.ServerPark).toBe("ENV_VAR_NOT_SET");
expect(config.BlaiseApiUrl).toBe("http://ENV_VAR_NOT_SET");
expect(config.RoleToServerParksMap).not.toBeNull();
});
});
4 changes: 2 additions & 2 deletions src/pages/users/__snapshots__/Users.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Object {
scope="col"
>
<span>
Default server park
Server Parks
</span>
</th>
<th
Expand Down Expand Up @@ -293,7 +293,7 @@ Object {
scope="col"
>
<span>
Default server park
Server Parks
</span>
</th>
<th
Expand Down

0 comments on commit f7acfa9

Please sign in to comment.