Skip to content

Commit

Permalink
Merge pull request ember-fastboot#77 from arjansingh/boot-promise-errors
Browse files Browse the repository at this point in the history
Add unit tests for Ember application boot-time errors
  • Loading branch information
danmcclain committed Aug 31, 2016
2 parents 58f0542 + ac50148 commit 9899016
Show file tree
Hide file tree
Showing 5 changed files with 84,121 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/fastboot-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ describe("FastBoot", function() {
fs.unlinkSync(packagePath);
}
});

it("handles apps boot-time failures by throwing Errors", function() {
var fastboot = new FastBoot({
distPath: fixture('boot-time-failing-app')
});

return fastboot.visit('/')
.catch((e) => expect(e).to.be.an('error'));
});

});

function fixture(fixtureName) {
Expand Down
351 changes: 351 additions & 0 deletions test/fixtures/boot-time-failing-app/assets/fastboot-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9899016

Please sign in to comment.