From a009e7f18257315a02b40ebfee279ffe6e1824b8 Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Tue, 26 Mar 2024 16:36:52 -0700 Subject: [PATCH] remove // eslint-disable-next-line no-new --- packages/core/__tests__/storage/CookieStorage.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/__tests__/storage/CookieStorage.test.ts b/packages/core/__tests__/storage/CookieStorage.test.ts index 89538d66034..c16e57920bf 100644 --- a/packages/core/__tests__/storage/CookieStorage.test.ts +++ b/packages/core/__tests__/storage/CookieStorage.test.ts @@ -20,15 +20,13 @@ describe('CookieStorage', () => { const _ = new CookieStorage({ sameSite: undefined }); }).toThrow(expectedError); expect(() => { - // eslint-disable-next-line no-new - new CookieStorage({ sameSite: 'foo' as any }); + const _ = new CookieStorage({ sameSite: 'foo' as any }); }).toThrow(expectedError); }); it('SameSite value is "none" while secure is false', () => { expect(() => { - // eslint-disable-next-line no-new - new CookieStorage({ + const _ = new CookieStorage({ domain: cookieStorageDomain, secure: false, sameSite: 'none',