add comments

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-09-24 10:09:34 +01:00
parent 8e871c455c
commit 5f6dec7d18
1 changed files with 4 additions and 0 deletions

View File

@ -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")) {