Skip to content

Commit

Permalink
fix: add imports.write scope to the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
swetabar committed Sep 26, 2024
1 parent fd4dbd3 commit 066dce2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ describe('ApiKey Model tests', () => {
});

it('creates an ApiKey object for a user with scope - imports.all_domains', () => {
const apiKey = createApiKey({ ...validApiKey, scopes: [{ name: 'imports.all_domains', domains: [] }] });
expect(apiKey.getScopes()).to.deep.equal([{ name: 'imports.all_domains', domains: [] }]);
const apiKey = createApiKey({ ...validApiKey, scopes: [{ name: 'imports.all_domains', domains: [] }, { name: 'imports.write', domains: [] }] });
expect(apiKey.getScopes()).to.deep.equal([{ name: 'imports.all_domains', domains: [] }, { name: 'imports.write', domains: [] }]);
});

it('creates an ApiKey object for a user with scope - imports.write', () => {
Expand Down

0 comments on commit 066dce2

Please sign in to comment.