MCPcopy
hub / github.com/getsentry/sentry / mockEvents

Function mockEvents

static/app/components/modals/dataWidgetViewerModal.spec.tsx:181–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 let mockWidget: Widget;
180
181 function mockEvents() {
182 return MockApiClient.addMockResponse({
183 url: '/organizations/org-slug/events/',
184 body: {
185 data: [
186 {
187 title: '/organizations/:orgId/dashboards/',
188 id: '1',
189 count: 1,
190 },
191 ],
192 meta: {
193 fields: {
194 title: 'string',
195 id: 'string',
196 count: 1,
197 },
198 isMetricsData: false,
199 },
200 },
201 });
202 }
203
204 beforeEach(() => {
205 mockQuery = {

Callers 1

Calls 2

addMockResponseMethod · 0.80
matchQueryMethod · 0.80

Tested by

no test coverage detected