2017-05-16 17:01:51 -04:00
|
|
|
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
|
|
|
});
|