Skip to content

Commit

Permalink
add newlines to problem string, phetsims/natural-selection#301
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 7, 2021
1 parent c4f90c5 commit d4a8054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/phet-io/phetioCompareAPIs.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@

const equals = _.isEqual( reference._data.initialState, proposed._data.initialState );
if ( !equals ) {
const problemString = `${phetioID}._data.initialState differs. Expected: ${JSON.stringify( reference._data.initialState )}, actual: ${JSON.stringify( proposed._data.initialState )}`;
const problemString = `${phetioID}._data.initialState differs. \nExpected:\n${JSON.stringify( reference._data.initialState )}\n actual:\n${JSON.stringify( proposed._data.initialState )}\n`;

// A changed state value could break a client wrapper, so identify it with breaking changes.
appendProblem( problemString, false );
Expand Down

0 comments on commit d4a8054

Please sign in to comment.