Global require lodash before tests

This commit is contained in:
Phan An 2017-12-11 00:29:55 +01:00
parent 80279799a8
commit f70552d026

View file

@ -17,6 +17,7 @@ Object.keys(window).forEach((key) => {
// make common utils available globally as well
global.expect = require('expect')
global.sinon = require('sinon')
global._ = require('lodash')
const testUtils = require('vue-test-utils')
global.shallow = testUtils.shallow
global.mount = testUtils.mount