Skip to content

Commit 0ea0e62

Browse files
fix tests
1 parent 5120ec9 commit 0ea0e62

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

static/app/components/events/eventEntries.spec.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ describe('EventEntries', function () {
3636
});
3737

3838
it('renders the replay section in the correct place', async function () {
39+
MockApiClient.addMockResponse({
40+
url: '/organizations/org-slug/prompts-activity/',
41+
body: {data: {dismissed_ts: null}},
42+
});
3943
render(
4044
<EventEntries
4145
{...defaultProps}

static/app/components/events/eventReplay/index.spec.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ describe('EventReplay', function () {
148148
MockUseReplayOnboardingSidebarPanel.mockReturnValue({
149149
activateSidebar: jest.fn(),
150150
});
151+
MockApiClient.addMockResponse({
152+
url: '/organizations/org-slug/prompts-activity/',
153+
body: {data: {dismissed_ts: null}},
154+
});
151155
render(<EventReplay {...defaultProps} />, {organization});
152156

153157
expect(

0 commit comments

Comments
 (0)