aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--karma.conf.js2
-rw-r--r--test/main.js4
2 files changed, 5 insertions, 1 deletions
diff --git a/karma.conf.js b/karma.conf.js
index b85480f..871e62a 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -4,7 +4,7 @@ module.exports = function (config) {
config.set({
basePath: '',
- frameworks: ['mocha'],
+ frameworks: ['mocha', 'sinon'],
files: [
'test/main.js',
'test/**/*.test.js',
diff --git a/test/main.js b/test/main.js
index d923aaa..3aeae69 100644
--- a/test/main.js
+++ b/test/main.js
@@ -1,2 +1,6 @@
import chai from 'chai';
+const browserFake = require('webextensions-api-fake');
+const browser = browserFake();
+
global.expect = chai.expect;
+global.browser = browser;