From f7771ce3c9fbafec392ddfee0f22a787894636d7 Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Thu, 2 Jan 2025 15:53:29 -0800 Subject: [PATCH] chore(adapter-nextjs): resolve comment --- .../adapter-nextjs/__tests__/auth/utils/isValidOrigin.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/adapter-nextjs/__tests__/auth/utils/isValidOrigin.test.ts b/packages/adapter-nextjs/__tests__/auth/utils/isValidOrigin.test.ts index 7dba61931cc..0aeee50ef29 100644 --- a/packages/adapter-nextjs/__tests__/auth/utils/isValidOrigin.test.ts +++ b/packages/adapter-nextjs/__tests__/auth/utils/isValidOrigin.test.ts @@ -47,13 +47,13 @@ describe('isValidOrigin', () => { }); }); -describe('isNonSSLLocalhostOrigin', () => { +describe('isSSLOrigin', () => { test.each([ ['https://some-app.com', true], ['http://localhost', false], ['http://localhost:3000', false], ['https:// some-app.com', false], - ])('check origin is non-SSL localhost %s as %s', (origin, expected) => { + ])('check origin SSL %s status as %s', (origin, expected) => { expect(isSSLOrigin(origin)).toBe(expected); }); });