chore:little fixes and formating and linting and patches
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
||||
import { parseCookieDomain } from './parse-cookie-domain';
|
||||
|
||||
describe('parseCookieDomain', () => {
|
||||
@@ -223,7 +223,7 @@ describe('parseCookieDomain', () => {
|
||||
|
||||
it('should handle domains with all URL components', () => {
|
||||
expect(
|
||||
parseCookieDomain('https://example.com:8080/path?param=value#fragment'),
|
||||
parseCookieDomain('https://example.com:8080/path?param=value#fragment')
|
||||
).toEqual({
|
||||
domain: '.example.com',
|
||||
secure: true,
|
||||
@@ -274,7 +274,7 @@ describe('parseCookieDomain', () => {
|
||||
|
||||
it('should throw error for URLs with invalid characters', () => {
|
||||
expect(() =>
|
||||
parseCookieDomain('http://example.com:invalid-port'),
|
||||
parseCookieDomain('http://example.com:invalid-port')
|
||||
).toThrow();
|
||||
});
|
||||
});
|
||||
@@ -296,7 +296,7 @@ describe('parseCookieDomain', () => {
|
||||
|
||||
it('should handle subdomains of openpanel.dev correctly', () => {
|
||||
expect(
|
||||
parseCookieDomain('https://staging.dashboard.openpanel.dev'),
|
||||
parseCookieDomain('https://staging.dashboard.openpanel.dev')
|
||||
).toEqual({
|
||||
domain: '.openpanel.dev',
|
||||
secure: true,
|
||||
|
||||
Reference in New Issue
Block a user