Skip to content

Commit

Permalink
fix: fix the documentation redirection failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadshaheer authored and YounixM committed Jan 28, 2025
1 parent bc56336 commit fa74a32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jest.mock('uplot', () => {
};
});

jest.mock('hooks/useSafeNavigate', () => ({
useSafeNavigate: (): any => ({
safeNavigate: jest.fn(),
}),
}));

let mockWindowOpen: jest.Mock;

window.ResizeObserver =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ window.ResizeObserver =
unobserve: jest.fn(),
}));

jest.mock('hooks/useSafeNavigate', () => ({
useSafeNavigate: (): any => ({
safeNavigate: jest.fn(),
}),
}));
describe('Anomaly Alert Documentation Redirection', () => {
let mockWindowOpen: jest.Mock;

Expand Down

0 comments on commit fa74a32

Please sign in to comment.