diff --git a/packages/koa-shopify-auth/src/auth/test/enable-cookies.test.ts b/packages/koa-shopify-auth/src/auth/test/enable-cookies.test.ts index 0e6becb9df..604a6ef6a1 100644 --- a/packages/koa-shopify-auth/src/auth/test/enable-cookies.test.ts +++ b/packages/koa-shopify-auth/src/auth/test/enable-cookies.test.ts @@ -26,6 +26,6 @@ describe('CreateEnableCookies', () => { expect(ctx.body).toContain('CookiePartitionPrompt'); expect(ctx.body).toContain(baseConfig.apiKey); expect(ctx.body).toContain(shopOrigin); - expect(ctx.body).toContain(`window.location.href = "/auth?shop=${shop}"`); + expect(ctx.body).toContain(`redirectUrl: "/auth?shop=${shop}"`); }); }); diff --git a/packages/koa-shopify-auth/src/auth/test/index.test.ts b/packages/koa-shopify-auth/src/auth/test/index.test.ts index 002c315578..5031a0767f 100644 --- a/packages/koa-shopify-auth/src/auth/test/index.test.ts +++ b/packages/koa-shopify-auth/src/auth/test/index.test.ts @@ -46,7 +46,7 @@ describe('Index', () => { await shopifyAuth(ctx, nextFunction); - expect(createRequestStorageAccess).toHaveBeenCalledWith(ctx); + expect(mockRequestStorageAccess).toHaveBeenCalledWith(ctx); }); });