mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
25 lines
548 B
JavaScript
25 lines
548 B
JavaScript
|
'use strict';
|
||
|
require('../common');
|
||
|
const { strictEqual } = require('node:assert');
|
||
|
const { suite, test } = require('node:test');
|
||
|
|
||
|
suite('suite', (t) => {
|
||
|
strictEqual(t.fullName, 'suite');
|
||
|
|
||
|
test('test', (t) => {
|
||
|
strictEqual(t.fullName, 'suite > test');
|
||
|
|
||
|
t.test('subtest', (t) => {
|
||
|
strictEqual(t.fullName, 'suite > test > subtest');
|
||
|
|
||
|
t.test('subsubtest', (t) => {
|
||
|
strictEqual(t.fullName, 'suite > test > subtest > subsubtest');
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|
||
|
test((t) => {
|
||
|
strictEqual(t.fullName, '<anonymous>');
|
||
|
});
|