Tests should be explicit regarding whether a promise is expected to settle, and the test should fail when the behavior does not meet expectations. PR-URL: https://github.com/nodejs/node/pull/60976 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Erick Wendel <erick.workspace@gmail.com>
8 lines
228 B
JavaScript
8 lines
228 B
JavaScript
'use strict';
|
|
|
|
const common = require('../../common');
|
|
const { testResolveAsync } = require(`./build/${common.buildType}/binding`);
|
|
|
|
// Checks that resolving promises from C++ works.
|
|
|
|
testResolveAsync().then(common.mustCall());
|