Skip to content

Commit

Permalink
chore(boot): test states for boot/start/stop
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Dec 3, 2019
1 parent 96c9313 commit 5edf46d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/boot/src/__tests__/unit/bootstrapper.unit.ts
Expand Up @@ -70,6 +70,14 @@ describe('boot-strapper unit tests', () => {
// No-op
await app.boot();
expect(app.state).to.eql('booted');
const start = app.start();
expect(app.state).to.equal('starting');
await start;
expect(app.state).to.equal('started');
const stop = app.stop();
expect(app.state).to.equal('stopping');
await stop;
expect(app.state).to.equal('stopped');
});

it('throws error with in-process application states', async () => {
Expand Down

0 comments on commit 5edf46d

Please sign in to comment.