Skip to content

Commit 8a595d4

Browse files
committed
Remove foxy references from tests
1 parent 8f2bcfa commit 8a595d4

4 files changed

Lines changed: 1 addition & 15 deletions

File tree

test/specs/e2e/proxy/e2e.proxy.cookies.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ var browserSync = require("../../../../index");
44
var testUtils = require("../../../protractor/utils");
55
var Immutable = require("immutable");
66
var request = require("supertest");
7-
var assert = require("chai").assert;
8-
var foxyPath = require.resolve("foxy");
9-
var foxy = require(foxyPath); // jshint ignore:line
107

118
describe.skip("E2E proxy test with custom cookies options passed to foxy", function () {
129

1310
this.timeout(15000);
1411

15-
var bs, app, spy;
12+
var bs, app;
1613

1714
before(function (done) {
1815

@@ -33,7 +30,6 @@ describe.skip("E2E proxy test with custom cookies options passed to foxy", funct
3330
logLevel: "silent"
3431
};
3532

36-
spy = require("sinon").spy(require.cache[foxyPath].exports, "create");
3733
bs = browserSync.init(config, done).instance;
3834
});
3935

@@ -44,10 +40,6 @@ describe.skip("E2E proxy test with custom cookies options passed to foxy", funct
4440

4541
it("sets cookie stripDomain: false", function (done) {
4642

47-
assert.isFalse(spy.getCall(0).args[1].cookies.stripDomain); // check fn passed to foxy
48-
49-
spy.restore();
50-
5143
var expected = app.html.replace("BS", bs.options.get("snippet") + "BS");
5244

5345
request(bs.options.getIn(["urls", "local"]))

test/specs/e2e/proxy/e2e.proxy.proxy.options.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ var testUtils = require("../../../protractor/utils");
55
var Immutable = require("immutable");
66
var request = require("supertest");
77
var assert = require("chai").assert;
8-
var foxyPath = require.resolve("foxy");
9-
var foxy = require(foxyPath); // jshint ignore:line
108

119
describe("E2E proxy test with `proxyOptions`", function () {
1210

test/specs/e2e/proxy/e2e.proxy.req.headers.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ var testUtils = require("../../../protractor/utils");
55
var Immutable = require("immutable");
66
var request = require("supertest");
77
var assert = require("chai").assert;
8-
var foxyPath = require.resolve("foxy");
9-
var foxy = require(foxyPath); // jshint ignore:line
108

119
describe("E2E proxy test with custom req headers", function () {
1210

test/specs/e2e/proxy/e2e.proxy.req.headers.obj.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ var testUtils = require("../../../protractor/utils");
55
var Immutable = require("immutable");
66
var request = require("supertest");
77
var assert = require("chai").assert;
8-
var foxyPath = require.resolve("foxy");
9-
var foxy = require(foxyPath); // jshint ignore:line
108

119
describe("E2E proxy test with custom req headers as object", function () {
1210

0 commit comments

Comments
 (0)