BigW Consortium Gitlab

autosize_spec.js 607 Bytes
Newer Older
1
/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
Fatih Acet committed
2

3
import '~/behaviors/autosize';
Fatih Acet committed
4 5 6 7 8

(function() {
  describe('Autosize behavior', function() {
    var load;
    beforeEach(function() {
9
      return setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>');
Fatih Acet committed
10 11 12 13 14 15 16 17
    });
    it('does not overwrite the resize property', function() {
      load();
      return expect($('textarea')).toHaveCss({
        resize: 'vertical'
      });
    });
    return load = function() {
Bryce Johnson committed
18
      return $(document).trigger('load');
Fatih Acet committed
19 20
    };
  });
21
}).call(window);