Skip to content

Commit b507d7b

Browse files
committed
fix: Update expected error messages to match upstream
1 parent d99efb3 commit b507d7b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/subcommands/osu/tests/profile.subcommand.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ describe("Osu Profile Subcommand", () => {
371371

372372
expect(errorHandler).toHaveBeenCalledWith(
373373
expect.objectContaining({
374-
message: "User not found",
374+
message: "Couldn't fetch requested user!",
375375
}),
376376
expect.anything(),
377377
)
@@ -465,7 +465,7 @@ describe("Osu Profile Subcommand", () => {
465465

466466
expect(errorHandler).toHaveBeenCalledWith(
467467
expect.objectContaining({
468-
message: "API Error",
468+
message: "❓ I couldn't find user with such username",
469469
}),
470470
expect.anything(),
471471
)

src/subcommands/osu/tests/recent-score.subcommand.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ describe("Osu Recent Score Subcommand", () => {
484484

485485
expect(errorHandler).toHaveBeenCalledWith(
486486
expect.objectContaining({
487-
message: "API Error",
487+
message: "❓ I couldn't find user with such username",
488488
}),
489489
expect.anything(),
490490
)
@@ -522,7 +522,7 @@ describe("Osu Recent Score Subcommand", () => {
522522

523523
expect(errorHandler).toHaveBeenCalledWith(
524524
expect.objectContaining({
525-
message: "Scores API Error",
525+
message: "Couldn't fetch requested user's recent score!",
526526
}),
527527
expect.anything(),
528528
)

src/subcommands/osu/tests/scores.subcommand.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ describe("Osu Scores Subcommand", () => {
320320

321321
expect(errorHandler).toHaveBeenCalledWith(
322322
expect.objectContaining({
323-
message: "API Error",
323+
message: "❓ I couldn't find user with such username",
324324
}),
325325
expect.anything(),
326326
)

0 commit comments

Comments
 (0)