Skip to content

Commit

Permalink
Remove unecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbadala committed Nov 16, 2023
1 parent 2068054 commit 35a788c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions test/end-to-end/signin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,6 @@ describe("SuperTokens SignIn", function () {
request.continue();
}
};

await page.setRequestInterception(true);
page.on("request", requestHandler);

try {
Expand All @@ -785,7 +783,6 @@ describe("SuperTokens SignIn", function () {
assert.deepStrictEqual(formFieldErrors, ["Please add email", "Field is not optional"]);
} finally {
page.off("request", requestHandler);
await page.setRequestInterception(false);
}

assert.ok(!apiCallMade, "Empty form making API request to signin");
Expand Down
2 changes: 0 additions & 2 deletions test/end-to-end/signup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ describe("SuperTokens SignUp", function () {
}
};

await page.setRequestInterception(true);
page.on("request", requestHandler);

try {
Expand All @@ -503,7 +502,6 @@ describe("SuperTokens SignUp", function () {
]);
} finally {
page.off("request", requestHandler);
await page.setRequestInterception(false);
}

assert.ok(!apiCallMade, "Empty form making signup API request");
Expand Down

0 comments on commit 35a788c

Please sign in to comment.