Skip to content

Commit 9899016

Browse files
authored
Merge pull request #77 from arjansingh/boot-promise-errors
Add unit tests for Ember application boot-time errors
2 parents 58f0542 + ac50148 commit 9899016

5 files changed

Lines changed: 84121 additions & 0 deletions

File tree

test/fastboot-test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,16 @@ describe("FastBoot", function() {
177177
fs.unlinkSync(packagePath);
178178
}
179179
});
180+
181+
it("handles apps boot-time failures by throwing Errors", function() {
182+
var fastboot = new FastBoot({
183+
distPath: fixture('boot-time-failing-app')
184+
});
185+
186+
return fastboot.visit('/')
187+
.catch((e) => expect(e).to.be.an('error'));
188+
});
189+
180190
});
181191

182192
function fixture(fixtureName) {

test/fixtures/boot-time-failing-app/assets/fastboot-test.js

Lines changed: 351 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)