2018-05-09 12:01:36 +05:30
|
|
|
import $ from 'jquery';
|
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
|
|
|
});
|