Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
vany0114 committed Oct 2, 2021
1 parent 95e8afc commit ee39b84
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ describe('integration:AzureFunctions', () => {
const handler = server.createHandler({
onHealthCheck: async () => {
return new Promise((resolve) => {
return resolve("Success!");
return resolve('Success!');
});
}
},
});

const context: any = {};
Expand All @@ -252,17 +252,19 @@ describe('integration:AzureFunctions', () => {
const handler = server.createHandler({
onHealthCheck: async () => {
return new Promise(() => {
throw new Error("Failed to connect!");
throw new Error('Failed to connect!');
});
}
},
});

const context = {
done(error: any, result: any) {
if (error) throw error;
expect(result.statusCode).toEqual(503);
expect(result.body).toEqual(JSON.stringify({ status: 'fail' }));
expect(result.headers['Content-Type']).toEqual('application/health+json');
expect(result.headers['Content-Type']).toEqual(
'application/health+json',
);
},
};

Expand Down

0 comments on commit ee39b84

Please sign in to comment.