mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
6329d2cd27
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>
13 lines
372 B
JavaScript
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);
|
|
}));
|