diff --git a/test/parallel/test-async-wrap-throw-no-init.js b/test/parallel/test-async-wrap-throw-no-init.js index ccf77f66dc7232..1f8cc70b36c6e7 100644 --- a/test/parallel/test-async-wrap-throw-no-init.js +++ b/test/parallel/test-async-wrap-throw-no-init.js @@ -4,11 +4,14 @@ require('../common'); const assert = require('assert'); const async_wrap = process.binding('async_wrap'); - assert.throws(function() { async_wrap.setupHooks(null); }, /first argument must be an object/); +assert.throws(function() { + async_wrap.setupHooks({}); +}, /init callback must be a function/); + assert.throws(function() { async_wrap.enable(); }, /init callback is not assigned to a function/);