node/test/parallel/test-timers-promises.js
Marco Ippolito 6329d2cd27
timers: export timers.promises
PR-URL: https://github.com/nodejs/node/pull/51246
Fixes: https://github.com/nodejs/node/issues/51237
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
2023-12-23 10:23:43 +00:00

13 lines
372 B
JavaScript

'use strict';
const common = require('../common');
const timer = require('node:timers');
const timerPromises = require('node:timers/promises');
const assert = require('assert');
const { test } = require('node:test');
test('(node:timers/promises) is equal to (node:timers).promises', common.mustCall(() => {
assert.deepStrictEqual(timerPromises, timer.promises);
}));