Skip to content

Commit

Permalink
Drop string interpolation use to support IE in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero committed Mar 29, 2019
1 parent 0b4a1e1 commit 0887799
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/spec/validateSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ describe('validate', function() {
"root": []
}"
*/
const expectedFormattedErrorMessage = `${message}\nname: ${name}\nindex: ${index}\noperation: ${operation}\ntree: ${tree}`
const expectedFormattedErrorMessage = message
.concat("\nname: ")
.concat(name, "\nindex: ")
.concat(index, "\noperation: ")
.concat(operation, "\ntree: ")
.concat(tree); // don't use `` to support the loveliest browser: IE

expect(expectedError.message).toEqual(expectedFormattedErrorMessage);
});

Expand Down

0 comments on commit 0887799

Please sign in to comment.