feat: switch frontend indexing to code-first identifiers
This commit is contained in:
@@ -15,13 +15,15 @@ const localStorageMock = {
|
||||
vi.stubGlobal('localStorage', localStorageMock)
|
||||
|
||||
// Mock window.location
|
||||
delete window.location
|
||||
window.location = Object.defineProperties({}, {
|
||||
Object.defineProperty(window, 'location', {
|
||||
configurable: true,
|
||||
value: Object.defineProperties({}, {
|
||||
pathname: { value: '/calendar', writable: true },
|
||||
href: { value: 'http://localhost/calendar', writable: true },
|
||||
assign: { value: vi.fn(), writable: true },
|
||||
replace: { value: vi.fn(), writable: true },
|
||||
}) as any
|
||||
}) as any,
|
||||
})
|
||||
|
||||
// Mock matchMedia
|
||||
Object.defineProperty(window, 'matchMedia', {
|
||||
|
||||
Reference in New Issue
Block a user