Skip to content

Commit

Permalink
replace duplicate test with test for extensions option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Dreyzehner committed Mar 27, 2015
1 parent 4a4a7c5 commit aee5c98
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/specs/cli/cli.options.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe("CLI: Options: Merging Server Options", function () {
assert.equal(imm.getIn(["server", "index"]), "index.htm");
assert.isFunction(imm.getIn(["server", "middleware"]));
});
it("can merge cli flags into object", function () {
it("can merge cli server, index flags into object", function () {
var argv = {
server: true,
index: "index.htm"
Expand All @@ -65,7 +65,7 @@ describe("CLI: Options: Merging Server Options", function () {
index: "index.htm"
});
});
it("can merge cli flags into object", function () {
it("can merge cli server, directory flags into object", function () {
var argv = {
server: true,
directory: true
Expand All @@ -76,18 +76,20 @@ describe("CLI: Options: Merging Server Options", function () {
directory: true
});
});
it("can merge cli flags into object", function () {
it("can merge cli server, index, extensions flags into object", function () {
var argv = {
server: true,
directory: true
server: "app",
index: "file.html",
extensions: ["html", "json"]
};
var imm = merge({}, argv);
var imm = merge({server: "app"}, argv);
assert.deepEqual(imm.get("server").toJS(), {
baseDir: "./",
directory: true
baseDir: "app",
index: "file.html",
extensions: ["html", "json"]
});
});
it("can merge cli flags into object", function () {
it("can merge cli server, directory, index flags into object", function () {
var argv = {
server: "app",
directory: true,
Expand Down

0 comments on commit aee5c98

Please sign in to comment.