-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(cli): Add failing for spec for files arg on command line, re: #425…
…, re: #426
- Loading branch information
1 parent
ff0782d
commit ae34a2c
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
"use strict"; | ||
|
||
var path = require("path"); | ||
var assert = require("chai").assert; | ||
var browserSync = require(path.resolve("./")); | ||
|
||
var pkg = require(path.resolve("package.json")); | ||
var cli = require(path.resolve(pkg.bin)); | ||
|
||
describe("E2E CLI `files` arg", function () { | ||
|
||
var instance; | ||
|
||
before(function (done) { | ||
|
||
browserSync.reset(); | ||
|
||
cli({ | ||
cli: { | ||
input: ["start"], | ||
flags: { | ||
logLevel: "silent", | ||
open: false, | ||
files: "*.html, css/*.css" | ||
} | ||
}, | ||
cb: function (err, bs) { | ||
instance = bs; | ||
done(); | ||
} | ||
}); | ||
}); | ||
after(function () { | ||
instance.cleanup(); | ||
}); | ||
it.only("Converts cli files arg to correct namespaced watchers", function () { | ||
assert.equal(instance.options.getIn(["files", "core"]).size, 2); | ||
}); | ||
}); |