tests: fixed identity creation tests

This commit is contained in:
Daniel Hougaard
2024-10-26 23:26:22 +04:00
parent 6be8d5d2a7
commit 273c6b3842
+2 -2
View File
@@ -34,7 +34,7 @@ describe("Identity v1", async () => {
test("Create identity", async () => { test("Create identity", async () => {
const newIdentity = await createIdentity("mac1", OrgMembershipRole.Admin); const newIdentity = await createIdentity("mac1", OrgMembershipRole.Admin);
expect(newIdentity.name).toBe("mac1"); expect(newIdentity.name).toBe("mac1");
expect(newIdentity.authMethod).toBeNull(); expect(newIdentity.authMethods).toEqual([]);
await deleteIdentity(newIdentity.id); await deleteIdentity(newIdentity.id);
}); });
@@ -42,7 +42,7 @@ describe("Identity v1", async () => {
test("Update identity", async () => { test("Update identity", async () => {
const newIdentity = await createIdentity("mac1", OrgMembershipRole.Admin); const newIdentity = await createIdentity("mac1", OrgMembershipRole.Admin);
expect(newIdentity.name).toBe("mac1"); expect(newIdentity.name).toBe("mac1");
expect(newIdentity.authMethod).toBeNull(); expect(newIdentity.authMethods).toEqual([]);
const updatedIdentity = await testServer.inject({ const updatedIdentity = await testServer.inject({
method: "PATCH", method: "PATCH",