chore(test): fix type mismatch
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2025-03-06 12:50:50 +01:00
parent fae37128f7
commit 0ce4b39a53
Signed by: tom
GPG key ID: F17EFE4272D89FF6
4 changed files with 28 additions and 16 deletions

View file

@ -36,10 +36,13 @@ describe("imprint.tsx", () => {
// @ts-ignore // @ts-ignore
delete window.location; delete window.location;
window.location = { Object.defineProperty(window, "location", {
...location, configurable: true,
value: {
...window.location,
reload: jest.fn(), reload: jest.fn(),
}; },
});
}); });
it("Tests Imprint", () => { it("Tests Imprint", () => {

View file

@ -48,10 +48,13 @@ describe("searchBar.tsx", () => {
// @ts-ignore // @ts-ignore
delete window.location; delete window.location;
window.location = { Object.defineProperty(window, "location", {
...location, configurable: true,
value: {
...window.location,
reload: jest.fn(), reload: jest.fn(),
}; },
});
}); });
it("Tests SearchBar rendering with properties", () => { it("Tests SearchBar rendering with properties", () => {

View file

@ -78,10 +78,13 @@ describe("settings.tsx", () => {
// @ts-ignore // @ts-ignore
delete window.location; delete window.location;
window.location = { Object.defineProperty(window, "location", {
...location, configurable: true,
value: {
...window.location,
reload: jest.fn(), reload: jest.fn(),
}; },
});
}); });
it("Tests forms", () => { it("Tests forms", () => {

View file

@ -21,10 +21,13 @@ const setup = () => {
// @ts-ignore // @ts-ignore
delete window.location; delete window.location;
window.location = { Object.defineProperty(window, "location", {
...location, configurable: true,
value: {
...window.location,
reload: jest.fn(), reload: jest.fn(),
}; },
});
}; };
describe("theme.tsx", () => { describe("theme.tsx", () => {