Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: rename errors to validations#2105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
presleyp merged 4 commits intomainfromvalidation-errors/presleyp/1943
Jun 7, 2022
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Format
  • Loading branch information
@presleyp
presleyp committedJun 6, 2022
commit07f755e3c2dcc6d37eb8e730786a88147c086ab4
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -54,7 +54,10 @@ describe("AccountPage", () => {
jest.spyOn(API, "updateProfile").mockRejectedValueOnce({
isAxiosError: true,
response: {
data: { message: "Invalid profile", validations: [{ detail: "Username is already in use", field: "username" }] },
data: {
message: "Invalid profile",
validations: [{ detail: "Username is already in use", field: "username" }],
},
},
})

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,7 +49,10 @@ describe("SecurityPage", () => {
jest.spyOn(API, "updateUserPassword").mockRejectedValueOnce({
isAxiosError: true,
response: {
data: { message: "Incorrect password.", validations: [{ detail: "Incorrect password.", field: "old_password" }] },
data: {
message: "Incorrect password.",
validations: [{ detail: "Incorrect password.", field: "old_password" }],
},
},
})

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp