Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
Test that thang!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Williams committed Jun 16, 2016
1 parent 92a0509 commit 9bef569
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/lib/up.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ describe('microboot/lib/up', function () {
expect(global.end1).to.be.below(global.end2)
})
})

it ('should fail if a non-function callback is provided', function () {
expect(up.bind(up, [], {})).to.throw('optional callback on bootup must be a function')
})
})

0 comments on commit 9bef569

Please sign in to comment.