Sha256: 034d6d2882815bbf2e646b9bc2ccc1fcc41417db607645975e4508729e22e288
Contents?: true
Size: 1.02 KB
Versions: 62
Compression:
Stored size: 1.02 KB
Contents
(function () { 'use strict'; describe('WORKAREA.propertyToggles', function () { describe('init', function () { /*jshint multistr: true */ it('disables blank fields before submisson ', function () { var $fixture = fixture.load( 'property_toggle.html', false ); WORKAREA.propertyToggles.init($($fixture)); $('.property-toggle__checkbox :input', $fixture) .prop('checked', true); $('#select1').val(''); $('#select2').val(''); $('.property-toggle-form', $fixture) .on('submit', function(e) { e.preventDefault(); }) .trigger('submit'); expect($('#select1', $fixture).prop('disabled')).to.equal( true ); expect($('#select2', $fixture).prop('disabled')).to.equal( false ); }); }); }); }());
Version data entries
62 entries across 62 versions & 1 rubygems