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

21 lines
411 B
JavaScript
Raw Normal View History

import $ from 'jquery';
import '~/behaviors/autosize';
2016-07-24 16:45:11 -04:00
2017-11-27 18:13:11 -05:00
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();
2018-10-09 14:03:09 -04:00
2017-11-27 18:13:11 -05:00
expect($('textarea')).toHaveCss({
resize: 'vertical',
2016-07-24 16:45:11 -04:00
});
});
2017-11-27 18:13:11 -05:00
});