mock browser
This commit is contained in:
parent
1b70ee966d
commit
a63311bd34
2 changed files with 5 additions and 1 deletions
|
@ -4,7 +4,7 @@ module.exports = function (config) {
|
|||
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['mocha'],
|
||||
frameworks: ['mocha', 'sinon'],
|
||||
files: [
|
||||
'test/main.js',
|
||||
'test/**/*.test.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;
|
||||
|
|
Reference in a new issue