Skip to content

Commit

Permalink
less hacky fix for lint, #162
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 30, 2017
1 parent 25e0da1 commit fd0aa16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/qunit/js/simple-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,10 @@

// mutually exclusive options
window.assert && throws( function() {
var p = new axon.StringProperty( 'foo', {
p = new axon.StringProperty( 'foo', {
validValues: [ 'foo', 'bar' ],
isValidValue: function( value ) { return value[ 0 ] === 'f'; }
} );
p.value = 'foo'; // appease the linter
}, 'should throw Assertion failed: validValues and isValidValue are mutually exclusive' );
} );

Expand Down

0 comments on commit fd0aa16

Please sign in to comment.