Skip to content

Commit 9da4d67

Browse files
committed
chore: fix test
1 parent fbbd89b commit 9da4d67

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/webui/src/client/ui/UserEditOperations/__tests__/PropertiesPanel.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ jest.mock('react-i18next', () => ({
141141
},
142142
}))
143143

144+
global.fetch = jest.fn(() =>
145+
Promise.resolve({
146+
ok: true,
147+
status: 200,
148+
headers: new Map([['content-type', 'image/svg']]),
149+
text: () => Promise.resolve('<svg></svg>'),
150+
})
151+
) as jest.Mock
152+
144153
const mockSegmentsCollection = MongoMock.getInnerMockCollection(Segments)
145154
const mockPartsCollection = MongoMock.getInnerMockCollection(UIParts)
146155

0 commit comments

Comments
 (0)