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

20 lines
410 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();
expect($('textarea')).toHaveCss({
resize: 'vertical',
2016-07-24 16:45:11 -04:00
});
});
2017-11-27 18:13:11 -05:00
});