mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 06:20:07 +02:00
Get all tape tests correct
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user