mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-22 16:18:14 +08:00
add comments
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8e871c455c
commit
5f6dec7d18
@ -1,6 +1,10 @@
|
|||||||
const en = require("../src/i18n/strings/en_EN");
|
const en = require("../src/i18n/strings/en_EN");
|
||||||
const de = require("../src/i18n/strings/de_DE");
|
const de = require("../src/i18n/strings/de_DE");
|
||||||
|
|
||||||
|
// Mock the browser-request for the languageHandler tests to return
|
||||||
|
// Fake languages.json containing references to en_EN and de_DE
|
||||||
|
// en_EN.json
|
||||||
|
// de_DE.json
|
||||||
module.exports = jest.fn((opts, cb) => {
|
module.exports = jest.fn((opts, cb) => {
|
||||||
const url = opts.url || opts.uri;
|
const url = opts.url || opts.uri;
|
||||||
if (url && url.endsWith("languages.json")) {
|
if (url && url.endsWith("languages.json")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user