Skip to content

Commit

Permalink
Fix small issue with test printing error & succeeding
Browse files Browse the repository at this point in the history
  • Loading branch information
PeledYuval committed Oct 22, 2019
1 parent e32d62e commit 0eee50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tests/test-a.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe(`# Test part A of the coding interview`, () => {
const app = express();
const port = config.SUBSCRIBER_PORT;
app.use(bodyParser.json());
app.route('/newAppointment').post(request => handler(request.body));
app.route('/newAppointment').post((request, response) => handler ? handler(request.body) : response.status(200).send());
server = app.listen(port);
return request({
method: 'POST',
Expand Down

0 comments on commit 0eee50d

Please sign in to comment.