Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
delvedor committed Jul 13, 2017
1 parent c3e35b4 commit a410e02
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/close.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ test('onClose arguments', (t) => {
const app = boot()

app.use(function (server, opts, done) {
app.onClose((err, instance, done) => {
t.error(err)
app.onClose((instance, done) => {
t.ok('called')
t.equal(app, instance)
done()
})
Expand All @@ -53,8 +53,8 @@ test('onClose should handle errors', (t) => {
const app = boot()

app.use(function (server, opts, done) {
app.onClose((err, instance, done) => {
t.error(err)
app.onClose((instance, done) => {
t.ok('called')
done(new Error('some error'))
})
done()
Expand All @@ -74,8 +74,8 @@ test('close arguments', (t) => {
const app = boot()

app.use(function (server, opts, done) {
app.onClose((err, instance, done) => {
t.error(err)
app.onClose((instance, done) => {
t.ok('called')
done()
})
done()
Expand Down Expand Up @@ -149,8 +149,8 @@ test('close without a cb', (t) => {

const app = boot()

app.onClose((err, instance, done) => {
t.error(err)
app.onClose((instance, done) => {
t.ok('called')
done()
})

Expand Down

0 comments on commit a410e02

Please sign in to comment.