Get all tape tests correct

This commit is contained in:
Tyler Long
2017-04-11 21:52:19 +08:00
parent bc94fc3d6d
commit fc96360e17
3 changed files with 109 additions and 114 deletions

View File

@@ -102,6 +102,19 @@ test('setting a css source file succeeds', function (t) {
})
})
test('setting an output directory incorrectly causes an error', function (t) {
t.plan(1)
const cli = require(cliPath)
const argv = ['-o']
cli.parse(argv, function (err) {
t.ok(err, 'an error is raised')
t.end()
})
})
test('a callback function is called after parsing', function (t) {
t.plan(3)
@@ -116,16 +129,3 @@ test('a callback function is called after parsing', function (t) {
t.end()
})
})
test('setting an output directory incorrectly causes an error', function (t) {
t.plan(1)
const cli = require(cliPath)
const argv = ['-o']
cli.parse(argv, function (err) {
t.ok(err, 'an error is raised')
t.end()
})
})