mock browser

This commit is contained in:
Shin'ya Ueoka 2018-05-05 15:08:01 +09:00
parent 1b70ee966d
commit a63311bd34
2 changed files with 5 additions and 1 deletions

View file

@ -1,2 +1,6 @@
import chai from 'chai';
const browserFake = require('webextensions-api-fake');
const browser = browserFake();
global.expect = chai.expect;
global.browser = browser;