Skip to content

Commit

Permalink
add => { return as bad text and fix usages, phetsims/chipper#790
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 19, 2019
1 parent 0a1e2ec commit 1ceb2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/EnumerationPropertyTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ define( function( require ) {
birdProperty = new EnumerationProperty( Birds, Birds.ROBIN, { validValues: Birds.VALUES } );
}, 'EnumerationProperty does not support validValues' );
window.assert && assert.throws( function() {
birdProperty = new EnumerationProperty( Birds, Birds.ROBIN, { isValidValue: () => { return true; } } );
birdProperty = new EnumerationProperty( Birds, Birds.ROBIN, { isValidValue: () => true } );
}, 'EnumerationProperty does not support isValidValue' );

// superclass options that are controlled by EnumerationProperty
Expand Down

0 comments on commit 1ceb2f1

Please sign in to comment.