From f70552d026b9d85e62dbd7790ad511a324c37199 Mon Sep 17 00:00:00 2001 From: Phan An Date: Mon, 11 Dec 2017 00:29:55 +0100 Subject: [PATCH] Global require lodash before tests --- resources/assets/js/tests/setup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/js/tests/setup.js b/resources/assets/js/tests/setup.js index 851c8f3e..54cbbe01 100644 --- a/resources/assets/js/tests/setup.js +++ b/resources/assets/js/tests/setup.js @@ -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