Client: Guild page and mix changes (#8533)

* update deps

* add guilds page

* improve karma conf, add tests for actions
This commit is contained in:
Matteo Pagliazzi
2017-03-05 19:07:48 +01:00
committed by GitHub
parent 03b3e79ea0
commit 0a35e63897
19 changed files with 282 additions and 227 deletions

View File

@@ -2,8 +2,17 @@
// and babel-runtime doesn't affect external libraries
require('babel-polyfill');
// require all test files (files that ends with .spec.js)
let testsContext = require.context('./specs', true, /\.spec$/);
// Automatically setup SinonJS' sandbox for each test
beforeEach(() => {
global.sandbox = sinon.sandbox.create();
});
afterEach(() => {
global.sandbox.restore();
});
// require all test files
let testsContext = require.context('./specs', true, /\.js$/);
testsContext.keys().forEach(testsContext);
// require all .vue and .js files except main.js for coverage.