Skip to content

Commit 32c927d

Browse files
committed
test: added failing test for #1109
1 parent 50e740c commit 32c927d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

test/specs/e2e/server/e2e.server.dirs.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,30 @@ describe("E2E server test with base dir array option + directory", function () {
150150
});
151151
});
152152
});
153+
154+
describe("E2E server test with base dir array = false", function () {
155+
156+
it.only("should ignore the directory option if a falsey value was given", function (done) {
157+
browserSync.reset();
158+
159+
var config = {
160+
server: {
161+
baseDir: ["test", "app"],
162+
directory: false
163+
},
164+
logLevel: "silent",
165+
open: false
166+
};
167+
168+
browserSync.init(config, function (err, bs) {
169+
request(bs.server)
170+
.get("/")
171+
.set("accept", "text/html")
172+
.expect(200)
173+
.end(function (err, res) {
174+
assert.notInclude(res.text, "listing directory /");
175+
done();
176+
});
177+
});
178+
});
179+
});

0 commit comments

Comments
 (0)