Skip to content

Commit

Permalink
Prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
havstein committed Aug 5, 2019
1 parent f796cf6 commit f8ddae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/io/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ export const behandlingerFor = async aktorId => {
return {
status: response.status,
data: await getData(response)
}
};
};

const getData = async response => {
try {
return await response.json()
return await response.json();
} catch (e) {
return undefined
return undefined;
}
}
};

export const putFeedback = async feedback => {
const response = await fetch(baseUrl + '/feedback', {
Expand Down
4 changes: 1 addition & 3 deletions tests/server/mapping.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ test('originalSøknad', async () => {
orgnummer: '999999999'
},
aktorId: '12345678910112',
soknadsperioder: [
{ sykmeldingsgrad: 100 }
],
soknadsperioder: [{ sykmeldingsgrad: 100 }],
fom: new Date('2019-05-09T00:00:00.000Z'),
tom: new Date('2019-05-26T00:00:00.000Z')
};
Expand Down

0 comments on commit f8ddae4

Please sign in to comment.