Skip to content

Commit

Permalink
refactor to keep tests consistent and give better assurance of normal…
Browse files Browse the repository at this point in the history
…ization (decentralized-identity#530)

Signed-off-by: Adarsh A <[email protected]>
  • Loading branch information
adarsh-a-tw committed Oct 3, 2023
1 parent 1434d27 commit 8b4d05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/interfaces/permissions-grant.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('PermissionsGrant', () => {
const scope: PermissionScope = {
interface : DwnInterfaceName.Records,
method : DwnMethodName.Write,
protocol : 'https://example.com/',
protocol : 'example.com/',
};

const { message } = await PermissionsGrant.create({
Expand All @@ -82,7 +82,7 @@ describe('PermissionsGrant', () => {
});


expect((message.descriptor.scope as RecordsPermissionScope).protocol).to.equal('https://example.com');
expect((message.descriptor.scope as RecordsPermissionScope).protocol).to.equal('http://example.com');
});
});

Expand Down

0 comments on commit 8b4d05a

Please sign in to comment.