Commit 673c4ccb authored by Fatih Acet's avatar Fatih Acet

Merge branch 'remove-iife-autosize' into 'master'

Improve autosize spec

See merge request gitlab-org/gitlab-ce!15620
parents 60da38a1 cd9c7596
/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
import '~/behaviors/autosize'; import '~/behaviors/autosize';
(function() { function load() {
describe('Autosize behavior', function() { $(document).trigger('load');
var load; }
beforeEach(function() {
return setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>'); describe('Autosize behavior', () => {
}); beforeEach(() => {
it('does not overwrite the resize property', function() { setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>');
load(); });
return expect($('textarea')).toHaveCss({
resize: 'vertical' it('does not overwrite the resize property', () => {
}); load();
expect($('textarea')).toHaveCss({
resize: 'vertical',
}); });
return load = function() {
return $(document).trigger('load');
};
}); });
}).call(window); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment