From a2bf8078698a0691a454e3730f1a33e85658c78d Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Thu, 11 Apr 2024 10:37:11 +0200 Subject: [PATCH] fix case --- web/src/client/users.test.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/src/client/users.test.js b/web/src/client/users.test.js index e49604999c..9121a3c39b 100644 --- a/web/src/client/users.test.js +++ b/web/src/client/users.test.js @@ -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", @@ -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"); });