Skip to content

Commit

Permalink
fix(test): error message formatting in translation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yxw007 committed Nov 16, 2024
1 parent 2433804 commit 913e80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/translate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe("translator", () => {
try {
await translator.translate(translateText, { from: "en", to: "Chinese", engine: "deepl" });
} catch (error) {
expect(error.message).toEqual("Translate: Translate fail ! texts parameter must be a non-empty string or array of non-empty strings");
expect(error.message).toEqual("Translate fail ! texts parameter must be a non-empty string or array of non-empty strings");
}
});
});
Expand Down

0 comments on commit 913e80d

Please sign in to comment.