fix: resolve TypeScript linting errors in AuthDebugger test
Replace 'any' types with proper type annotations to satisfy @typescript-eslint/no-explicit-any rule. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1d531d5a36
commit
12385a3ce6
1 changed files with 4 additions and 4 deletions
|
|
@ -87,12 +87,12 @@ Object.defineProperty(window, "sessionStorage", {
|
||||||
// Mock window.location in a way that works in all environments
|
// Mock window.location in a way that works in all environments
|
||||||
const mockLocation = {
|
const mockLocation = {
|
||||||
origin: "http://localhost:3000",
|
origin: "http://localhost:3000",
|
||||||
};
|
} as Location;
|
||||||
|
|
||||||
// Try to delete first, then redefine
|
// Try to delete first, then redefine
|
||||||
try {
|
try {
|
||||||
delete (window as any).location;
|
delete (window as { location?: Location }).location;
|
||||||
window.location = mockLocation as any;
|
window.location = mockLocation;
|
||||||
} catch {
|
} catch {
|
||||||
// If that fails, try Object.defineProperty with configurable
|
// If that fails, try Object.defineProperty with configurable
|
||||||
try {
|
try {
|
||||||
|
|
@ -103,7 +103,7 @@ try {
|
||||||
});
|
});
|
||||||
} catch {
|
} catch {
|
||||||
// As a last resort, just assign to window.location
|
// As a last resort, just assign to window.location
|
||||||
(window as any).location = mockLocation;
|
(window as { location: Location }).location = mockLocation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue