1'use strict';
2const common = require('../common');
3const async_hooks = require('async_hooks');
4
5Promise.resolve(1).then(common.mustCall(() => {
6  async_hooks.createHook({
7    init: common.mustCall(),
8    before: common.mustCallAtLeast(),
9    after: common.mustCallAtLeast(2)
10  }).enable();
11
12  process.nextTick(common.mustCall());
13}));
14