From 91c63ca85fdb18d59329ea9069fd4028071f0dbb Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Wed, 28 Aug 2024 19:15:01 -0400 Subject: [PATCH] update test definitions --- packages/api/tests/web5.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api/tests/web5.spec.ts b/packages/api/tests/web5.spec.ts index ceb4791e9..5f8981d4d 100644 --- a/packages/api/tests/web5.spec.ts +++ b/packages/api/tests/web5.spec.ts @@ -846,7 +846,7 @@ describe('web5 api', () => { const call = requestPermissionsSpy.getCall(0); // since no explicit permissions were provided, all permissions should be requested - expect(call.args[1]).to.have.members([ + expect(call.args[0].permissions).to.have.members([ 'read', 'write', 'delete', 'query', 'subscribe' ]); } @@ -920,14 +920,14 @@ describe('web5 api', () => { const call1 = requestPermissionsSpy.getCall(0); // since no explicit permissions were provided for the first protocol, all permissions should be requested - expect(call1.args[1]).to.have.members([ + expect(call1.args[0].permissions).to.have.members([ 'read', 'write', 'delete', 'query', 'subscribe' ]); const call2 = requestPermissionsSpy.getCall(1); // only the provided permissions should be requested for the second protocol - expect(call2.args[1]).to.have.members([ + expect(call2.args[0].permissions).to.have.members([ 'read', 'write' ]); }