mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix check test failure for FF 3.6
TIL sometimes JSON.stringify can convert new lines to "\u000a" as supposed to "\n".# Please enter the commit message for your changes. Lines starting
This commit is contained in:
@@ -223,6 +223,8 @@ Tinytest.add("check - Match error path", function (test) {
|
||||
try {
|
||||
check(value, pattern);
|
||||
} catch (err) {
|
||||
// XXX just for FF 3.6, its JSON stringification prefers "\u000a" to "\n"
|
||||
err.path = err.path.replace(/\\u000a/, "\\n");
|
||||
if (err.path != expectedPath)
|
||||
test.fail({
|
||||
type: "match-error-path",
|
||||
|
||||
Reference in New Issue
Block a user