From 91300f3d8840ab84a3e426384ad4fa06bff263c5 Mon Sep 17 00:00:00 2001 From: David Yan Date: Mon, 28 Dec 2015 20:20:08 -0800 Subject: [PATCH] Fixed test that uses String.prototype.includes to use indexOf instead --- test/svg2js/_index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/svg2js/_index.js b/test/svg2js/_index.js index 8fbf916ab..d88a16f30 100644 --- a/test/svg2js/_index.js +++ b/test/svg2js/_index.js @@ -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(); });