From 5f6dec7d189e93bdc7ed15d0ff9895b89e34cea3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 24 Sep 2020 10:09:34 +0100 Subject: [PATCH] add comments Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- __mocks__/browser-request.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__mocks__/browser-request.js b/__mocks__/browser-request.js index 391be7c54f..4c59e8a43a 100644 --- a/__mocks__/browser-request.js +++ b/__mocks__/browser-request.js @@ -1,6 +1,10 @@ const en = require("../src/i18n/strings/en_EN"); 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) => { const url = opts.url || opts.uri; if (url && url.endsWith("languages.json")) {