mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
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>
11 lines
364 B
JavaScript
11 lines
364 B
JavaScript
import { mustCall } from '../common/index.mjs';
|
|
import fixtures from '../common/fixtures.js';
|
|
import assert from 'assert';
|
|
import { pathToFileURL } from 'url';
|
|
|
|
import(pathToFileURL(fixtures.path('/es-modules/tla/parent.mjs')))
|
|
.then(({ default: order }) => {
|
|
assert.deepStrictEqual(order, ['order', 'b', 'c', 'd', 'a', 'parent']);
|
|
})
|
|
.then(mustCall());
|