mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-05 23:33:11 +02:00
test: fix JS test so window works
This commit is contained in:
parent
1cd220febb
commit
dfc73e55d3
|
@ -1,6 +1,7 @@
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
|
|
||||||
// mock chrome namespace
|
// mock chrome namespace
|
||||||
|
global.window = global;
|
||||||
global.chrome = {};
|
global.chrome = {};
|
||||||
// run background.js
|
// run background.js
|
||||||
const {Routes, tryMatchRoute} = require('../extension/background');
|
const {Routes, tryMatchRoute} = require('../extension/background');
|
||||||
|
|
Loading…
Reference in a new issue