mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
5276c0d5d4
This commit adds a suite() function to the test runner and makes describe() an alias for it. This matches the it() alias for test(). Fixes: https://github.com/nodejs/node/issues/51430 PR-URL: https://github.com/nodejs/node/pull/52127 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
9 lines
218 B
JavaScript
9 lines
218 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const { strictEqual } = require('node:assert');
|
|
const test = require('node:test');
|
|
|
|
strictEqual(test.test, test);
|
|
strictEqual(test.it, test);
|
|
strictEqual(test.describe, test.suite);
|