mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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);
|
||
|
}));
|