Files
zkldi_Tachi/vendor/tap/test/run/comments.js
T
2024-08-17 15:01:24 +00:00

25 lines
410 B
JavaScript

const {
tmpfile,
run,
tap,
t,
clean,
} = require('./')
const ok = tmpfile(t, 'comments/ok.js', `'use strict'
const t = require(${tap})
t.comment('root')
t.test('parent', t => {
t.comment('parent')
t.test('child', t => {
t.comment('child')
t.end()
})
t.end()
})
`)
t.plan(1)
run(['--comments', ok], {}, (er, o, e) =>
t.equal(clean(e), 'root\nparent\nchild\n'))