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

22 lines
516 B
JavaScript
Raw Normal View History

2016-09-13 17:45:13 +05:30
/*= require behaviors/autosize */
(function() {
describe('Autosize behavior', function() {
var load;
beforeEach(function() {
return fixture.set('<textarea class="js-autosize" style="resize: vertical"></textarea>');
});
it('does not overwrite the resize property', function() {
load();
return expect($('textarea')).toHaveCss({
resize: 'vertical'
});
});
return load = function() {
return $(document).trigger('page:load');
};
});
}).call(this);