-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/update-region-on-cart
- Loading branch information
Showing
250 changed files
with
2,834 additions
and
1,742 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,15 +139,23 @@ medusaIntegrationTestRunner({ | |
describe("Reset password flows", () => { | ||
it("should generate a reset password token", async () => { | ||
const response = await api.post("/auth/user/emailpass/reset-password", { | ||
email: "[email protected]", | ||
identifier: "[email protected]", | ||
}) | ||
|
||
expect(response.status).toEqual(201) | ||
}) | ||
|
||
it("should fail if identifier is not provided", async () => { | ||
const errResponse = await api | ||
.post("/auth/user/emailpass/reset-password", {}) | ||
.catch((e) => e) | ||
|
||
expect(errResponse.response.status).toEqual(400) | ||
}) | ||
|
||
it("should fail to generate token for non-existing user, but still respond with 201", async () => { | ||
const response = await api.post("/auth/user/emailpass/reset-password", { | ||
email: "[email protected]", | ||
identifier: "[email protected]", | ||
}) | ||
|
||
expect(response.status).toEqual(201) | ||
|
@@ -156,7 +164,7 @@ medusaIntegrationTestRunner({ | |
it("should fail to generate token for existing user but no provider, but still respond with 201", async () => { | ||
const response = await api.post( | ||
"/auth/user/non-existing-provider/reset-password", | ||
{ email: "[email protected]" } | ||
{ identifier: "[email protected]" } | ||
) | ||
|
||
expect(response.status).toEqual(201) | ||
|
@@ -165,7 +173,7 @@ medusaIntegrationTestRunner({ | |
it("should fail to generate token for existing user but no provider, but still respond with 201", async () => { | ||
const response = await api.post( | ||
"/auth/user/non-existing-provider/reset-password", | ||
{ email: "[email protected]" } | ||
{ identifier: "[email protected]" } | ||
) | ||
|
||
expect(response.status).toEqual(201) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.