mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
PR-URL: https://github.com/nodejs/node/pull/60763 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
29 lines
696 B
JavaScript
29 lines
696 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('node:assert');
|
|
const { before, suite, test } = require('node:test');
|
|
|
|
before(common.mustCall((t) => {
|
|
assert.strictEqual(t.fullName, '<root>');
|
|
}));
|
|
|
|
suite('suite', common.mustCall((t) => {
|
|
assert.strictEqual(t.fullName, 'suite');
|
|
|
|
test('test', (t) => {
|
|
assert.strictEqual(t.fullName, 'suite > test');
|
|
|
|
t.test('subtest', (t) => {
|
|
assert.strictEqual(t.fullName, 'suite > test > subtest');
|
|
|
|
t.test('subsubtest', (t) => {
|
|
assert.strictEqual(t.fullName, 'suite > test > subtest > subsubtest');
|
|
});
|
|
});
|
|
});
|
|
}));
|
|
|
|
test((t) => {
|
|
assert.strictEqual(t.fullName, '<anonymous>');
|
|
});
|