Skip to content

Commit

Permalink
test: clean up account linking example test
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 5, 2023
1 parent ad4fa00 commit a4e3f1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/with-account-linking/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"helmet": "^5.1.0",
"morgan": "^1.10.0",
"npm-run-all": "^4.1.5",
"supertokens-node": "github:supertokens/supertokens-node#account-linking",
"supertokens-node": "^16.2.0",
"ts-node-dev": "^2.0.0",
"typescript": "^4.7.2"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/with-account-linking/test/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe("SuperTokens Example Basic tests", function () {
before(async function () {
browser = await puppeteer.launch({
args: ["--no-sandbox", "--disable-setuid-sandbox"],
headless: false,
headless: true,
});
page = await browser.newPage();
});
Expand Down Expand Up @@ -186,7 +186,7 @@ async function checkLoginMethods(page, expectedLoginMethods) {
const className = await classNameProp.jsonValue();
const method = className.split(" ")[0];
const contactInfo = (await (await div.$(".contactInfo")).evaluate((el) => el.textContent)).trim();
console.log({ expectedLoginMethods, method, contactInfo });

assert(
expectedLoginMethods.some(
(m) =>
Expand Down

0 comments on commit a4e3f1a

Please sign in to comment.