8000 test: require tap as t in cli tests · json5/json5@2aab4dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 2aab4dd

Browse files
committed
test: require tap as t in cli tests
1 parent 6d42686 commit 2aab4dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/cli.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ const assert = require('assert')
22
const child = require('child_process')
33
const fs = require('fs')
44
const path = require('path')
5-
const tap = require('tap')
65
const pkg = require('../package.json')
76

87
const cliPath = path.resolve(__dirname, '../lib/cli.js')
98

10-
tap.test('CLI', t => {
9+
const t = require('tap')
10+
11+
t.test('CLI', t => {
1112
t.test('converts JSON5 to JSON from stdin to stdout', t => {
1213
const proc = child.spawn(process.execPath, [cliPath])
1314
let output = ''

0 commit comments

Comments
 (0)
0