node/test/parallel/test-warn-multipleResolves.mjs
Antoine du Hamel daf8a468d5
doc: fix deprecation number
Refs: https://github.com/nodejs/node/pull/41872
Refs: https://github.com/nodejs/node/pull/41896

PR-URL: https://github.com/nodejs/node/pull/41990
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
2022-02-15 19:55:56 +01:00

15 lines
275 B
JavaScript

import { expectWarning, mustCall } from '../common/index.mjs';
expectWarning(
'DeprecationWarning',
'The multipleResolves event has been deprecated.',
'DEP0160',
);
process.on('multipleResolves', mustCall());
new Promise((resolve) => {
resolve();
resolve();
});