summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-11-29 09:51:59 +0000
committerFatih Acet <acetfatih@gmail.com>2017-11-29 09:51:59 +0000
commit673c4ccbc8914a1bee0ed4fe544c06ddb000fd44 (patch)
treea3062b3f80a1b625cbba4ec5c7d2c6c8ad6c123e
parent60da38a1a75b17a57a1bc071993b74e9862bbb67 (diff)
parentcd9c75960c99ece71cadd691eb0297850e623a47 (diff)
downloadgitlab-ce-673c4ccbc8914a1bee0ed4fe544c06ddb000fd44.tar.gz
Merge branch 'remove-iife-autosize' into 'master'
Improve autosize spec See merge request gitlab-org/gitlab-ce!15620
-rw-r--r--spec/javascripts/behaviors/autosize_spec.js31
1 files changed, 14 insertions, 17 deletions
diff --git a/spec/javascripts/behaviors/autosize_spec.js b/spec/javascripts/behaviors/autosize_spec.js
index 67afba19190..960b731892a 100644
--- a/spec/javascripts/behaviors/autosize_spec.js
+++ b/spec/javascripts/behaviors/autosize_spec.js
@@ -1,21 +1,18 @@
-/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
-
import '~/behaviors/autosize';
-(function() {
- describe('Autosize behavior', function() {
- var load;
- beforeEach(function() {
- return setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>');
- });
- it('does not overwrite the resize property', function() {
- load();
- return expect($('textarea')).toHaveCss({
- resize: 'vertical'
- });
+function load() {
+ $(document).trigger('load');
+}
+
+describe('Autosize behavior', () => {
+ beforeEach(() => {
+ setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>');
+ });
+
+ it('does not overwrite the resize property', () => {
+ load();
+ expect($('textarea')).toHaveCss({
+ resize: 'vertical',
});
- return load = function() {
- return $(document).trigger('load');
- };
});
-}).call(window);
+});