test: fix JS test so window works

This commit is contained in:
Omar Rizwan 2021-04-22 18:32:40 -07:00
parent 1cd220febb
commit dfc73e55d3
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
const assert = require('assert');
// mock chrome namespace
global.window = global;
global.chrome = {};
// run background.js
const {Routes, tryMatchRoute} = require('../extension/background');