gitlab-org--gitlab-foss/spec/javascripts/behaviors/autosize_spec.js

22 lines
609 B
JavaScript
Raw Normal View History

/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
2016-07-24 16:45:11 -04:00
require('~/behaviors/autosize');
2016-07-24 16:45:11 -04:00
(function() {
describe('Autosize behavior', function() {
var load;
beforeEach(function() {
return setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>');
2016-07-24 16:45:11 -04:00
});
it('does not overwrite the resize property', function() {
load();
return expect($('textarea')).toHaveCss({
resize: 'vertical'
});
});
return load = function() {
2017-01-13 16:54:16 -05:00
return $(document).trigger('load');
2016-07-24 16:45:11 -04:00
};
});
}).call(window);