From 52963c89406a522fa01b435e0fbe9381a9bfbee3 Mon Sep 17 00:00:00 2001 From: Winnie Hellmann Date: Fri, 25 Jan 2019 10:47:41 +0000 Subject: [PATCH] Apply suggestion to spec/javascripts/test_bundle.js --- spec/javascripts/test_bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index 1ea37c791ee..b2b0a50911d 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -23,7 +23,7 @@ let hasVueWarnings = false; Vue.config.warnHandler = (msg, vm, trace) => { // The following workaround is necessary, so we are able to use setProps from Vue test utils // see https://github.com/vuejs/vue-test-utils/issues/631#issuecomment-421108344 - const currentStack = new Error('').stack; + const currentStack = new Error().stack; const isInVueTestUtils = currentStack .split('\n') .some(line => line.startsWith(' at VueWrapper.setProps ('));