Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Lee <[email protected]>
Co-authored-by: Zoey Lan <[email protected]>
  • Loading branch information
3 people committed Aug 27, 2024
1 parent 2266e7f commit ce0ff32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export const REVOKED_WITHOUT_ERROR = buildGraphqlResponseContent({
appRevokeAccessScopes: {
revoked: [
{
handle: 'write_discounts'
handle: 'write_discounts',
},
{
handle: 'read_orders'
}
handle: 'read_orders',
},
],
userErrors: [],
},
Expand All @@ -56,7 +56,7 @@ export const REVOKED_WITH_ERROR = buildGraphqlResponseContent({
messages:
'The requested list of scopes to revoke includes invalid handles.',
},
]
],
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ import * as responses from './mock-responses';
it('returns successfully revoked scopes', async () => {
// GIVEN
const {scopes} = await setUpEmbeddedFlow();
await mockGraphqlRequests()(
{
body: 'AppRevokeAccessScopes',
responseContent: responses.REVOKED_WITHOUT_ERROR,
},
);
await mockGraphqlRequests()({
body: 'AppRevokeAccessScopes',
responseContent: responses.REVOKED_WITHOUT_ERROR,
});

// WHEN
const result = await scopes.revoke(['write_discounts', 'read_orders']);
Expand All @@ -33,12 +31,10 @@ it('returns successfully revoked scopes', async () => {
it('returns successfully with empty list when graphql returns an empty list for the revoke operation', async () => {
// GIVEN
const {scopes} = await setUpEmbeddedFlow();
await mockGraphqlRequests()(
{
body: 'AppRevokeAccessScopes',
responseContent: responses.REVOKED_NOTHING,
},
);
await mockGraphqlRequests()({
body: 'AppRevokeAccessScopes',
responseContent: responses.REVOKED_NOTHING,
});

// WHEN
const result = await scopes.revoke(['read_orders']);
Expand Down

0 comments on commit ce0ff32

Please sign in to comment.