Skip to content

Commit e6ffd58

Browse files
committed
Updated unit tests (#106)
1 parent 2fb5b38 commit e6ffd58

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

__mocks__/setup.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ class Worker {
2828

2929
const noop = () => {};
3030

31+
const dummyMetadata = [{
32+
name: 'ValidApplication',
33+
mimes: ['valid/bazz'],
34+
files: []
35+
}];
36+
3137
const fetchMocks = {
3238
text: {
3339

@@ -46,11 +52,8 @@ const fetchMocks = {
4652

4753
'/apps/Jest/test': true,
4854

49-
'/metadata.json': [{
50-
name: 'ValidApplication',
51-
mimes: ['valid/bazz'],
52-
files: []
53-
}],
55+
'/metadata.json': dummyMetadata,
56+
'/api/packages/metadata': dummyMetadata,
5457

5558
'/settings': ({method}) => String(method).toLowerCase() === 'post'
5659
? true

0 commit comments

Comments
 (0)