gitlab-org--gitlab-foss/spec/javascripts/behaviors/autosize_spec.js
2017-02-17 17:02:14 -06:00

21 lines
609 B
JavaScript

/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
require('~/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'
});
});
return load = function() {
return $(document).trigger('load');
};
});
}).call(window);