Skip to content

Commit

Permalink
fix linting issues after upgrades of common linting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Sep 12, 2024
1 parent 1422ca7 commit 83151df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/fake-server/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe("sinonFakeServer", function () {
"fakeServer.create should accept 'autoRespond' setting",
);
});

it("allows the 'autoRespondAfter' setting", function () {
var server = sinonFakeServer.create({
autoRespondAfter: 500,
Expand All @@ -63,6 +64,7 @@ describe("sinonFakeServer", function () {
"fakeServer.create should accept 'autoRespondAfter' setting",
);
});

it("allows the 'respondImmediately' setting", function () {
var server = sinonFakeServer.create({
respondImmediately: true,
Expand All @@ -72,6 +74,7 @@ describe("sinonFakeServer", function () {
"fakeServer.create should accept 'respondImmediately' setting",
);
});

it("allows the 'fakeHTTPMethods' setting", function () {
var server = sinonFakeServer.create({
fakeHTTPMethods: true,
Expand All @@ -81,6 +84,7 @@ describe("sinonFakeServer", function () {
"fakeServer.create should accept 'fakeHTTPMethods' setting",
);
});

it("allows the 'unsafeHeadersEnabled' setting", function () {
var server = sinon.fakeServer.create({
unsafeHeadersEnabled: false,
Expand All @@ -94,6 +98,7 @@ describe("sinonFakeServer", function () {
"fakeServer.create should accept 'unsafeHeadersEnabled' setting",
);
});

it("does not assign a non-allowlisted setting", function () {
var server = sinonFakeServer.create({
foo: true,
Expand All @@ -103,6 +108,7 @@ describe("sinonFakeServer", function () {
"fakeServer.create should not accept 'foo' settings",
);
});

it("allows the 'legacyRoutes' setting", function () {
var server = sinonFakeServer.create({
legacyRoutes: false,
Expand Down
4 changes: 4 additions & 0 deletions lib/fake-xhr/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,7 @@ describe("FakeXMLHttpRequest", function () {

describe("stub XHR", function () {
beforeEach(fakeXhrSetUp);

afterEach(fakeXhrTearDown);

it("returns FakeXMLHttpRequest constructor", function () {
Expand Down Expand Up @@ -2323,6 +2324,7 @@ describe("FakeXMLHttpRequest", function () {
if (typeof ActiveXObject === "undefined") {
describe("missing ActiveXObject", function () {
beforeEach(fakeXhrSetUp);

afterEach(fakeXhrTearDown);

it("does not expose ActiveXObject", function () {
Expand All @@ -2338,6 +2340,7 @@ describe("FakeXMLHttpRequest", function () {
} else {
describe("native ActiveXObject", function () {
beforeEach(fakeXhrSetUp);

afterEach(fakeXhrTearDown);

it("hijacks ActiveXObject", function () {
Expand Down Expand Up @@ -2412,6 +2415,7 @@ describe("FakeXMLHttpRequest", function () {

describe("with native XHR", function () {
beforeEach(fakeXhrSetUp);

afterEach(fakeXhrTearDown);

it("replaces global XMLHttpRequest", function () {
Expand Down

0 comments on commit 83151df

Please sign in to comment.