Refactor unit test assertions to be more specific

- Change `process.bootingFlagSet` assertion from `ok()` to `true()`
- Change `app.booting` assertion from `not.be.ok()` to `false()`
This commit is contained in:
Simon Ho 2015-02-23 13:10:12 -08:00
parent d041d80933
commit 276391811a
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ describe('executor', function() {
expect(app.booting).to.be.undefined(); expect(app.booting).to.be.undefined();
boot.execute(app, simpleAppInstructions(), function(err) { boot.execute(app, simpleAppInstructions(), function(err) {
expect(err).to.be.undefined(); expect(err).to.be.undefined();
expect(process.bootingFlagSet).to.be.ok(); expect(process.bootingFlagSet).to.be.true();
expect(app.booting).to.not.be.ok(); expect(app.booting).to.be.false();
done(); done();
}); });
}); });