Skip to content

Commit

Permalink
Updated unit tests (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Apr 11, 2020
1 parent 2fb5b38 commit e6ffd58
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions __mocks__/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class Worker {

const noop = () => {};

const dummyMetadata = [{
name: 'ValidApplication',
mimes: ['valid/bazz'],
files: []
}];

const fetchMocks = {
text: {

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

'/apps/Jest/test': true,

'/metadata.json': [{
name: 'ValidApplication',
mimes: ['valid/bazz'],
files: []
}],
'/metadata.json': dummyMetadata,
'/api/packages/metadata': dummyMetadata,

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

0 comments on commit e6ffd58

Please sign in to comment.