Comparing version 7.0.0 to 7.0.1
@@ -33,3 +33,3 @@ 'use strict' | ||
instance.use(fn, opts) | ||
return instance | ||
return this | ||
} | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "avvio", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Asynchronous bootstrapping of Node applications", | ||
@@ -5,0 +5,0 @@ "main": "boot.js", |
@@ -72,1 +72,27 @@ 'use strict' | ||
}) | ||
test('chainable standalone with server', (t) => { | ||
t.plan(6) | ||
const server = {} | ||
boot(server, { | ||
expose: { | ||
use: 'register' | ||
} | ||
}) | ||
const readyResult = server.register(function (ctx, opts, done) { | ||
t.pass('1st plugin') | ||
done() | ||
}).after(function (err, done) { | ||
t.error(err) | ||
t.pass('2nd after') | ||
done() | ||
}).register(function (ctx, opts, done) { | ||
t.pass('3rd plugin') | ||
done() | ||
}).ready(function () { | ||
t.pass('we are ready') | ||
}) | ||
t.equal(readyResult, undefined) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129815
4415