gitlab-org--gitlab-foss/spec/javascripts/behaviors/autosize_spec.js
2017-11-27 17:13:11 -06:00

18 lines
386 B
JavaScript

import '~/behaviors/autosize';
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',
});
});
});