debian-mirror-gitlab/spec/javascripts/behaviors/autosize_spec.js

22 lines
607 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
2016-09-13 17:45:13 +05:30
2017-09-10 17:25:29 +05:30
import '~/behaviors/autosize';
2016-09-13 17:45:13 +05:30
(function() {
describe('Autosize behavior', function() {
var load;
beforeEach(function() {
2017-08-17 22:00:37 +05:30
return setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>');
2016-09-13 17:45:13 +05:30
});
it('does not overwrite the resize property', function() {
load();
return expect($('textarea')).toHaveCss({
resize: 'vertical'
});
});
return load = function() {
2017-08-17 22:00:37 +05:30
return $(document).trigger('load');
2016-09-13 17:45:13 +05:30
};
});
2017-08-17 22:00:37 +05:30
}).call(window);