Skip to content

Commit e316d4d

Browse files
committed
fix tests
1 parent 764b583 commit e316d4d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

static/app/views/detectors/edit.spec.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('DetectorEdit', () => {
2121
const organization = OrganizationFixture({
2222
features: ['workflow-engine-ui', 'visibility-explore-view'],
2323
});
24-
const project = ProjectFixture({organization, environments: ['production']});
24+
const project = ProjectFixture({id: '1', organization, environments: ['production']});
2525
const initialRouterConfig = {
2626
route: '/organizations/:orgId/issues/monitors/:detectorId/edit/',
2727
location: {
@@ -35,6 +35,12 @@ describe('DetectorEdit', () => {
3535
ProjectsStore.loadInitialData([project]);
3636

3737
MockApiClient.clearMockResponses();
38+
39+
MockApiClient.addMockResponse({
40+
url: `/organizations/${organization.slug}/projects/`,
41+
body: [project],
42+
});
43+
3844
MockApiClient.addMockResponse({
3945
url: `/organizations/${organization.slug}/members/`,
4046
body: [],

0 commit comments

Comments
 (0)