Skip to content

Commit

Permalink
test(cli): Add failing for spec for files arg on command line, re: #425
Browse files Browse the repository at this point in the history
…, re: #426
  • Loading branch information
shakyShane committed Feb 5, 2015
1 parent ff0782d commit ae34a2c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/specs/e2e/cli/e2e.cli.files.js
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);
});
});

0 comments on commit ae34a2c

Please sign in to comment.