diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-17 00:01:51 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-17 00:01:51 +0300 |
commit | 283f968ef2826914d1ab7b1ddb59ad1cbe441ff0 (patch) | |
tree | 397373653791aca31dc3ef37c0d3611e012406fd /spec/javascripts/gl_form_spec.js | |
parent | 6c695c52e833da54aed1494afd110588c183e186 (diff) |
update frontend specs to use ES module syntax
Diffstat (limited to 'spec/javascripts/gl_form_spec.js')
-rw-r--r-- | spec/javascripts/gl_form_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/javascripts/gl_form_spec.js b/spec/javascripts/gl_form_spec.js index 5ed18d0a76b..0c7b0950a7d 100644 --- a/spec/javascripts/gl_form_spec.js +++ b/spec/javascripts/gl_form_spec.js @@ -1,9 +1,9 @@ -/* global autosize */ +import autosize from 'vendor/autosize'; +import '~/gl_form'; +import '~/lib/utils/text_utility'; +import '~/lib/utils/common_utils'; -window.autosize = require('vendor/autosize'); -require('~/gl_form'); -require('~/lib/utils/text_utility'); -require('~/lib/utils/common_utils'); +window.autosize = autosize; describe('GLForm', () => { const global = window.gl || (window.gl = {}); |