Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
  • Loading branch information
zabil committed Aug 29, 2024
1 parent 10813da commit 2d05688
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 3 additions & 4 deletions test/unit-tests/actions/pageActionChecks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ describe("pageActionChecks", () => {
retryTimeout: 10,
});
});
afterEach(
() =>
(pageActionChecks = rewire("../../../lib/actions/pageActionChecks")),
);
afterEach(() => {
pageActionChecks = rewire("../../../lib/actions/pageActionChecks");
});
it("should call checkActionable with default checks if not given", async () => {
const defaultChecks = [
pageActionChecks.checksMap.visible,
Expand Down
5 changes: 1 addition & 4 deletions test/unit-tests/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe("Config tests", () => {
});
afterEach(() => {
config = rewire("../../lib/config");
config.setConfig(originalConfig);
});
describe("Test setConfig", () => {
describe("For invalid config name", () => {
Expand Down Expand Up @@ -311,8 +312,4 @@ describe("Config tests", () => {
expect(actualOptions).to.deep.equal(exceptedOptions);
});
});

afterEach(() => {
config.setConfig(originalConfig);
});
});
4 changes: 2 additions & 2 deletions test/unit-tests/handlers/fetchHandler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ describe("Fetch Handler", () => {
},
],
];
headersAndHost.forEach((headerAndHost) => {
for (const headerAndHost of headersAndHost) {
fetchHandler.setHTTPHeaders(headerAndHost[0], headerAndHost[1]);
});
}
});
it("should set appropriate headers for a host", () => {
headersAndHost.forEach((headerAndHost, index) => {
Expand Down

0 comments on commit 2d05688

Please sign in to comment.