Skip to content

Commit

Permalink
test: mock window.postMessage so the origin is the same
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Jan 12, 2024
1 parent 6b3697f commit 6efdefd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/features/Chat.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { MARS_ROVER_CHAT, STUB_CAPS_RESPONSE } from "../__fixtures__";
describe("Chat", () => {
beforeEach(() => {
stubResizeObserver();
vi.spyOn(window, "postMessage").mockImplementation(postMessage);
});

afterEach(() => {
Expand Down

0 comments on commit 6efdefd

Please sign in to comment.