Skip to content

Commit

Permalink
Let's get coveralls to show 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
kobim committed Apr 5, 2018
1 parent 89a1a6d commit acc9918
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_alexa_integration_express.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ describe("Alexa", function() {
.get('/testApp')
.expect(404);
});

it("fails with server error on bad request", function() {
testApp.pre = function () {
throw "SOME ERROR";
};
return request(testServer)
.post('/testApp')
.send()
.expect(500).then(function (response) {
return expect(response.error.text).to.eq("Server Error");
});
});
});

context("#express with debug set to true", function() {
Expand Down

0 comments on commit acc9918

Please sign in to comment.