From ce0ff328e74d30d56d115519037c653c0a69f90e Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Tue, 27 Aug 2024 16:29:16 -0400 Subject: [PATCH] Fix linting Co-authored-by: Ryan Lee Co-authored-by: Zoey Lan --- .../admin/scope/__tests__/mock-responses.ts | 8 ++++---- .../admin/scope/__tests__/revoke.test.ts | 20 ++++++++----------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/mock-responses.ts b/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/mock-responses.ts index 86e9426c7..4c478336b 100644 --- a/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/mock-responses.ts +++ b/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/mock-responses.ts @@ -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: [], }, @@ -56,7 +56,7 @@ export const REVOKED_WITH_ERROR = buildGraphqlResponseContent({ messages: 'The requested list of scopes to revoke includes invalid handles.', }, - ] + ], }, }); diff --git a/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/revoke.test.ts b/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/revoke.test.ts index 694ccb795..fe97d8618 100644 --- a/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/revoke.test.ts +++ b/packages/apps/shopify-app-remix/src/server/authenticate/admin/scope/__tests__/revoke.test.ts @@ -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']); @@ -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']);