1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Improve fetch mock setup (#9511)

- Move from language to mock setup file
- Add mock rule for stub image requests
This commit is contained in:
Michael Weimann
2022-10-26 16:54:45 +02:00
committed by GitHub
parent 0f1738b098
commit 7692533e18
2 changed files with 7 additions and 4 deletions

View File

@ -20,10 +20,6 @@ import * as languageHandler from "../../src/languageHandler";
import en from "../../src/i18n/strings/en_EN.json";
import de from "../../src/i18n/strings/de_DE.json";
fetchMock.config.overwriteRoutes = false;
fetchMock.catch("");
window.fetch = fetchMock.sandbox();
const lv = {
"Save": "Saglabāt",
"Uploading %(filename)s and %(count)s others|one": "Качване на %(filename)s и %(count)s друг",