Skip to content

Commit

Permalink
Fixed test that uses String.prototype.includes to use indexOf instead
Browse files Browse the repository at this point in the history
  • Loading branch information
yandavid committed Dec 29, 2015
1 parent 4800bf7 commit 91300f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/svg2js/_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ describe('svg2js', function() {
thrownErrorParts = error.toString().split(':');

return rootErrorParts.reduce(function(result, value, index) {
return result && value.includes(thrownErrorParts[index]);
return result && value.indexOf(thrownErrorParts[index]) === 0;
}, true).should.be.true();
});

Expand Down

0 comments on commit 91300f3

Please sign in to comment.