Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 11, 2024
1 parent 206fa76 commit a2bf807
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions web/src/client/users.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,20 @@ jest.mock("./http", () => {
};
});

const FirstUser = {
const firstUser = {
fullName: "Jane Doe",
userName: "jane",
password: "12345",
autologin: false,
data: {}
};
const RootPasswordSet = false;
const RootSSHKey = "ssh-key";
const rootSSHKey = "ssh-key";

describe("#getUser", () => {
it("returns the defined first user", async () => {
const http = new HTTPClient(new URL("http://localhost"));
const client = new UsersClient(http);
mockJsonFn.mockResolvedValue(FirstUser);
mockJsonFn.mockResolvedValue(firstUser);
const user = await client.getUser();
expect(user).toEqual({
fullName: "Jane Doe",
Expand Down Expand Up @@ -116,7 +115,7 @@ describe("#getRootSSHKey", () => {
it("returns the SSH key for the root user", async () => {
const http = new HTTPClient(new URL("http://localhost"));
const client = new UsersClient(http);
mockJsonFn.mockResolvedValue({ sshkey: RootSSHKey });
mockJsonFn.mockResolvedValue({ sshkey: rootSSHKey });
const result = await client.getRootSSHKey();
expect(result).toEqual("ssh-key");
});
Expand Down

0 comments on commit a2bf807

Please sign in to comment.