Skip to content

Commit

Permalink
update test definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Aug 28, 2024
1 parent abebe0a commit 91c63ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api/tests/web5.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]);
}
Expand Down Expand Up @@ -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'
]);
}
Expand Down

0 comments on commit 91c63ca

Please sign in to comment.