Skip to content

Commit f215d04

Browse files
Get rid of setting appId from tests directly
1 parent ecad24b commit f215d04

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_gen.js

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

130130
before(async function () {
131131
const coreUrl = await setupCoreApp({
132-
appId: "test-app-id",
133132
coreConfig: {
134133
passwordless_code_lifetime: 4000,
135134
passwordless_max_code_input_attempts: 3,
@@ -343,7 +342,6 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
343342

344343
before(async function () {
345344
coreUrl = await setupCoreApp({
346-
appId: "test-app-id",
347345
coreConfig,
348346
});
349347
});

0 commit comments

Comments
 (0)