summaryrefslogtreecommitdiff
path: root/spec/javascripts/gl_form_spec.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-10-10 10:47:29 +0100
committerPhil Hughes <me@iamphill.com>2017-10-11 08:41:33 +0100
commit556ef5ed9f4700a614980bc9aa24c4b45c7efb08 (patch)
tree29ad76973e6a60185d149b436bd2cc5128b6c0e5 /spec/javascripts/gl_form_spec.js
parent44d3745e51c7433d2560cdd82c9df9653d3577a3 (diff)
downloadgitlab-ce-556ef5ed9f4700a614980bc9aa24c4b45c7efb08.tar.gz
Diffstat (limited to 'spec/javascripts/gl_form_spec.js')
-rw-r--r--spec/javascripts/gl_form_spec.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/javascripts/gl_form_spec.js b/spec/javascripts/gl_form_spec.js
index 837feacec1d..124fc030774 100644
--- a/spec/javascripts/gl_form_spec.js
+++ b/spec/javascripts/gl_form_spec.js
@@ -1,18 +1,11 @@
import autosize from 'vendor/autosize';
-import '~/gl_form';
+import GLForm from '~/gl_form';
import '~/lib/utils/text_utility';
import '~/lib/utils/common_utils';
window.autosize = autosize;
describe('GLForm', () => {
- const global = window.gl || (window.gl = {});
- const GLForm = global.GLForm;
-
- it('should be defined in the global scope', () => {
- expect(GLForm).toBeDefined();
- });
-
describe('when instantiated', function () {
beforeEach((done) => {
this.form = $('<form class="gfm-form"><textarea class="js-gfm-input"></form>');