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