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

12 lines
330 B
CoffeeScript
Raw Normal View History

2016-02-05 20:25:01 +05:30
#= require behaviors/autosize
describe 'Autosize behavior', ->
beforeEach ->
fixture.set('<textarea class="js-autosize" style="resize: vertical"></textarea>')
it 'does not overwrite the resize property', ->
load()
expect($('textarea')).toHaveCss(resize: 'vertical')
load = -> $(document).trigger('page:load')