From a63311bd34afb5566c9f58bac69a27fa865e7b10 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 5 May 2018 15:08:01 +0900 Subject: mock browser --- test/main.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/main.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; -- cgit v1.2.3