mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-09 15:19:50 +03:00
25 lines
410 B
JavaScript
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'))
|