Skip to content

Commit

Permalink
remove // eslint-disable-next-line no-new
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Mar 28, 2024
1 parent cf8bc04 commit 1a830db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core/__tests__/storage/CookieStorage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1a830db

Please sign in to comment.