Adds CSS option to the CLI

This commit is contained in:
fardog
2015-02-02 19:02:45 -08:00
parent c4639d11c8
commit 3a96682b9c
6 changed files with 61 additions and 5 deletions

View File

@@ -71,6 +71,18 @@ test('setting an output directory succeeds', function(t) {
})
})
test('setting a css source file succeeds', function(t) {
t.plan(1)
var cli = require(cliPath)
, argv = ['-t', 'test/fixtures/test.css']
cli.parse(argv, function(err, msg, opt) {
t.ok(opt.css, 'css file is populated')
t.end()
})
})
test('setting an output directory incorrectly causes an error', function(t) {
t.plan(1)