debian-mirror-gitlab/spec/javascripts/behaviors/autosize_spec.js

19 lines
386 B
JavaScript
Raw Normal View History

2017-09-10 17:25:29 +05:30
import '~/behaviors/autosize';
2016-09-13 17:45:13 +05:30
2018-03-17 18:26:18 +05:30
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-09-13 17:45:13 +05:30
});
});
2018-03-17 18:26:18 +05:30
});