mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Merge pull request #205 from gillesdemey/dev-default-style
Default style when using the CLI
This commit is contained in:
commit
c81e933dc3
2
dist/mermaid.css
vendored
2
dist/mermaid.css
vendored
@ -256,5 +256,5 @@ text {
|
||||
}
|
||||
|
||||
.mermaid {
|
||||
width:1200px;
|
||||
width: auto;
|
||||
}
|
||||
|
@ -109,6 +109,8 @@ cli.prototype.parse = function(argv, next) {
|
||||
} catch (err) {
|
||||
this.errors.push(err)
|
||||
}
|
||||
} else {
|
||||
options.css = fs.readFileSync(__dirname + '/../dist/mermaid.css')
|
||||
}
|
||||
|
||||
this.checkPhantom = createCheckPhantom(options.phantomPath)
|
||||
|
@ -71,6 +71,17 @@ test('setting an output directory succeeds', function(t) {
|
||||
})
|
||||
})
|
||||
|
||||
test('not setting a css source file uses a default style', function(t) {
|
||||
t.plan(1)
|
||||
|
||||
var cli = require(cliPath)
|
||||
|
||||
cli.parse([], function(err, msg, opt) {
|
||||
t.ok(opt.css, 'css file is populated')
|
||||
t.end()
|
||||
})
|
||||
})
|
||||
|
||||
test('setting a css source file succeeds', function(t) {
|
||||
t.plan(1)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user