import autosize from 'vendor/autosize'; import '~/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 = $('