BigW Consortium Gitlab

autosize_spec.js 516 Bytes
Newer Older
Fatih Acet committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

/*= 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);