Update Eslint config, add new rule and handle issue (#3068)

This commit is contained in:
Kristjan ESPERANTO
2023-03-20 22:18:58 +01:00
committed by GitHub
parent d276a7ddb9
commit ab0876f07a
3 changed files with 5 additions and 3 deletions

View File

@@ -188,7 +188,7 @@ describe("Translator", () => {
const file = "translation_test.json";
XMLHttpRequest.prototype.send = () => {
throw "Shouldn't load files";
throw new Error("Shouldn't load files");
};
Translator.translationsFallback[mmm.name] = {