Skip to content

Commit 7f2baba

Browse files
Get rid of setting appId from tests directly
1 parent 58751bb commit 7f2baba

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

test/end-to-end/accountlinking.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ describe("SuperTokens Account linking", function () {
321321

322322
it("should not allow sign in w/ an unverified emailpassword user in case of conflict", async function () {
323323
// Use a common appId over the test to allow re-inits
324-
const coreUrl = await setupCoreApp({ appId: "test-app-id" });
324+
const coreUrl = await setupCoreApp();
325325
await setupST({
326326
coreUrl,
327327
passwordlessFlowType,
@@ -489,7 +489,7 @@ describe("SuperTokens Account linking", function () {
489489

490490
it("should not allow sign in w/ an unverified thirdparty user in case of conflict", async function () {
491491
// Use a common appId over the test to allow re-inits
492-
const coreUrl = await setupCoreApp({ appId: "test-app-id" });
492+
const coreUrl = await setupCoreApp();
493493
await setupST({
494494
coreUrl,
495495
passwordlessFlowType,
@@ -558,7 +558,7 @@ describe("SuperTokens Account linking", function () {
558558
const email = `test-user+${Date.now()}@supertokens.com`;
559559

560560
// Use a common appId over the test to allow re-inits
561-
const coreUrl = await setupCoreApp({ appId: "test-app-id" });
561+
const coreUrl = await setupCoreApp();
562562
await setupST({
563563
coreUrl,
564564
passwordlessFlowType,
@@ -607,7 +607,7 @@ describe("SuperTokens Account linking", function () {
607607
it("should not allow sign up w/ passwordless if it conflicts with an unverified user", async function () {
608608
const email = `test-user+${Date.now()}@supertokens.com`;
609609
// Use a common appId over the test to allow re-inits
610-
const coreUrl = await setupCoreApp({ appId: "test-app-id" });
610+
const coreUrl = await setupCoreApp();
611611
await setupST({
612612
coreUrl,
613613
passwordlessFlowType,
@@ -658,7 +658,7 @@ describe("SuperTokens Account linking", function () {
658658
const email2 = `test-user2+${Date.now()}@supertokens.com`;
659659

660660
// Use a common appId over the test to allow re-inits
661-
const coreUrl = await setupCoreApp({ appId: "test-app-id" });
661+
const coreUrl = await setupCoreApp();
662662
await setupST({
663663
coreUrl,
664664
passwordlessFlowType,
@@ -733,7 +733,7 @@ describe("SuperTokens Account linking", function () {
733733
await page.evaluate(() => window.localStorage.setItem("mode", "REQUIRED"));
734734

735735
// Use a common appId over the test to allow re-inits
736-
const coreUrl = await setupCoreApp({ appId: "test-app-id" });
736+
const coreUrl = await setupCoreApp();
737737
await setupST({
738738
coreUrl,
739739
passwordlessFlowType,

test/end-to-end/passwordless.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
350350

351351
before(async function () {
352352
const coreUrl = await setupCoreApp({
353-
appId: "test-app-id",
354353
coreConfig: {
355354
passwordless_code_lifetime: 4000,
356355
passwordless_max_code_input_attempts: 3,
@@ -548,7 +547,6 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
548547

549548
before(async function () {
550549
coreUrl = await setupCoreApp({
551-
appId: "test-app-id",
552550
coreConfig,
553551
});
554552
});

0 commit comments

Comments
 (0)