chore:little fixes and formating and linting and patches

This commit is contained in:
2026-03-31 15:50:54 +02:00
parent a1ce71ffb6
commit 9b197abcfa
815 changed files with 22960 additions and 8982 deletions

View File

@@ -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,