diff --git a/bindings_node/test/Client.test.ts b/bindings_node/test/Client.test.ts index 8f4a221b4..8893c71bc 100644 --- a/bindings_node/test/Client.test.ts +++ b/bindings_node/test/Client.test.ts @@ -139,41 +139,41 @@ describe('Client', () => { ]) }) - it("should revoke all installations", async () => { - const user = createUser(); + it('should revoke all installations', async () => { + const user = createUser() - const client = await createRegisteredClient(user); - user.uuid = v4(); - const client2 = await createRegisteredClient(user); - user.uuid = v4(); - const client3 = await createRegisteredClient(user); + const client = await createRegisteredClient(user) + user.uuid = v4() + const client2 = await createRegisteredClient(user) + user.uuid = v4() + const client3 = await createRegisteredClient(user) - const inboxState = await client3.inboxState(true); - expect(inboxState.installations.length).toBe(3); + const inboxState = await client3.inboxState(true) + expect(inboxState.installations.length).toBe(3) - const installationIds = inboxState.installations.map((i) => i.id); - expect(installationIds).toContain(client.installationId()); - expect(installationIds).toContain(client2.installationId()); - expect(installationIds).toContain(client3.installationId()); + const installationIds = inboxState.installations.map((i) => i.id) + expect(installationIds).toContain(client.installationId()) + expect(installationIds).toContain(client2.installationId()) + expect(installationIds).toContain(client3.installationId()) const signatureText = await client3.revokeAllOtherInstallationsSignatureText(); - expect(signatureText).toBeDefined(); + expect(signatureText).toBeDefined() - // Sign message + // sign message const signature = await user.wallet.signMessage({ message: signatureText, - }); + }) await client3.addSignature( SignatureRequestType.RevokeInstallations, toBytes(signature) - ); - await client3.applySignatureRequests(); - const inboxState2 = await client3.inboxState(true); + ) + await client3.applySignatureRequests() + const inboxState2 = await client3.inboxState(true) - expect(inboxState2.installations.length).toBe(1); - expect(inboxState2.installations[0].id).toBe(client3.installationId()); - }); + expect(inboxState2.installations.length).toBe(1) + expect(inboxState2.installations[0].id).toBe(client3.installationId()) + }) it('should manage consent states', async () => { const user1 = createUser()