Skip to content

Commit c3ce56e

Browse files
committed
Bump fastboot-express-middleware version
Needed to fix one test. The failing test was because when we there is an error from fastboot and it is not UnrecognizedUrl, we don't close the response but mark it to 500 and call the next middleware. Express then sets the correct response and content type.
1 parent e65bd3e commit c3ce56e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"ember-cli-babel": "^5.1.7",
3030
"ember-cli-version-checker": "^1.1.6",
3131
"express": "^4.8.5",
32-
"fastboot-express-middleware": "1.0.0-rc.3",
32+
"fastboot-express-middleware": "1.0.0-rc.7",
3333
"fastboot-filter-initializers": "0.0.2",
3434
"lodash.defaults": "^4.0.1",
3535
"lodash.uniq": "^4.2.0",

test/simple-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ describe('simple acceptance', function() {
5656
return request('http://localhost:49741/boom')
5757
.then(function(response) {
5858
expect(response.statusCode).to.equal(500);
59-
expect(response.headers["content-type"]).to.eq("text/plain; charset=utf-8");
60-
expect(response.body).to.equal("Internal Server Error");
59+
expect(response.headers["content-type"]).to.eq("text/html; charset=utf-8");
60+
expect(response.body).to.equal("BOOM\n");
6161
});
6262
});
6363

0 commit comments

Comments
 (0)