[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/devhttps/frontend/master/dev/jest.setupTestFrameworkScriptFile.js [Back]  [Original]

require('babel-polyfill');

// Stub global Guardian config
window.guardian = {
    config: {
        switches: {},
        page: {},
        images: {
            commercial: {},
        },
        libs: {},
    },
    css: {},
    adBlockers: {
        active: undefined,
        onDetect: [],
    },
};

// Stub matchmedia
window.matchMedia =
    window.matchMedia ||
    function() {
        return {
            matches: false,
            addListener() {},
            removeListener() {},
        };
    };

Web Proxy Viewer  |  New URL  |  Original Page