Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Jul 14, 2023
1 parent d71d219 commit 36482c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/useridmapping/recipeTests/emailpassword.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe(`userIdMapping with emailpassword: ${printPath(
});

// sign in, check that the userId retrieved is the external userId
let signInResponse = await EmailPasswordRecipe.signIn(email, password);
let signInResponse = await EmailPasswordRecipe.signIn("public", email, password);
assert.strictEqual(signInResponse.status, "OK");
assert.strictEqual(signInResponse.user.id, externalId);
});
Expand Down Expand Up @@ -248,7 +248,7 @@ describe(`userIdMapping with emailpassword: ${printPath(
assert.strictEqual(resetPasswordUsingTokenResponse.userId, externalId);

// check that the password is reset by signing in
let response = await EmailPasswordRecipe.signIn(email, newPassword);
let response = await EmailPasswordRecipe.signIn("public", email, newPassword);
assert.strictEqual(response.status, "OK");
assert.strictEqual(response.user.id, externalId);
});
Expand Down Expand Up @@ -311,7 +311,7 @@ describe(`userIdMapping with emailpassword: ${printPath(

// sign in with the new email
{
const response = await EmailPasswordRecipe.signIn(updatedEmail, password);
const response = await EmailPasswordRecipe.signIn("public", updatedEmail, password);
assert.strictEqual(response.status, "OK");
assert.strictEqual(response.user.id, externalId);
}
Expand All @@ -330,7 +330,7 @@ describe(`userIdMapping with emailpassword: ${printPath(

// sign in with new password
{
const response = await EmailPasswordRecipe.signIn(updatedEmail, updatedPassword);
const response = await EmailPasswordRecipe.signIn("public", updatedEmail, updatedPassword);
assert.strictEqual(response.status, "OK");
assert.strictEqual(response.user.id, externalId);
}
Expand Down
2 changes: 2 additions & 0 deletions test/useridmapping/recipeTests/passwordless.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ describe(`userIdMapping with passwordless: ${printPath(
});

let response = await PasswordlessRecipe.getUserByPhoneNumber({
tenantId: "public",
phoneNumber,
});
assert.ok(response !== undefined);
Expand Down Expand Up @@ -380,6 +381,7 @@ describe(`userIdMapping with passwordless: ${printPath(

// retrieve user
let response = await PasswordlessRecipe.getUserByPhoneNumber({
tenantId: "public",
phoneNumber,
});
assert.strictEqual(response.id, externalId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ describe(`userIdMapping with ThirdPartyEmailPassword: ${printPath(
const email = "test2@example.com";

let signUpResponse = await ThirdPartyEmailPasswordRecipe.thirdPartyManuallyCreateOrUpdateUser(
"public",
"google",
"tpId",
email
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ describe(`userIdMapping with thirdPartyPasswordless: ${printPath(
// create a Passwordless user
const phoneNumber = "+911234566789";
const codeInfo = await ThirdPartyPasswordlessRecipe.createCode({
tenantId: "public",
phoneNumber,
});

Expand Down

0 comments on commit 36482c1

Please sign in to comment.