debian-mirror-gitlab/spec/frontend/behaviors/autosize_spec.js
2020-06-23 00:09:42 +05:30

20 lines
411 B
JavaScript

import $ from 'jquery';
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',
});
});
});