mirror of https://github.com/osnr/TabFS.git
test: fix JS test so window works
This commit is contained in:
parent
1cd220febb
commit
dfc73e55d3
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue