diff --git a/test/fixtures/jsx/basic/11/expected.json b/test/fixtures/jsx/basic/11/expected.json index 6f0e2cd475..032ce25604 100644 --- a/test/fixtures/jsx/basic/11/expected.json +++ b/test/fixtures/jsx/basic/11/expected.json @@ -136,13 +136,12 @@ } }, "value": "@test content", - "rawValue": "@test content", + "rawValue": null, "raw": "@test content" } ] } } ] - }, - "comments": [] + } } \ No newline at end of file diff --git a/test/fixtures/jsx/basic/12/expected.json b/test/fixtures/jsx/basic/12/expected.json index f8e15a3fa4..1f3d2013ac 100644 --- a/test/fixtures/jsx/basic/12/expected.json +++ b/test/fixtures/jsx/basic/12/expected.json @@ -186,13 +186,12 @@ } }, "value": "7x invalid-js-identifier", - "rawValue": "7x invalid-js-identifier", + "rawValue": null, "raw": "7x invalid-js-identifier" } ] } } ] - }, - "comments": [] + } } \ No newline at end of file diff --git a/test/fixtures/jsx/basic/13/expected.json b/test/fixtures/jsx/basic/13/expected.json index 393f8e7d98..4d358e1604 100644 --- a/test/fixtures/jsx/basic/13/expected.json +++ b/test/fixtures/jsx/basic/13/expected.json @@ -276,7 +276,7 @@ } }, "value": "monkeys /> gorillas", - "rawValue": "monkeys /> gorillas", + "rawValue": null, "raw": "monkeys /> gorillas" } ] @@ -306,6 +306,5 @@ } } ] - }, - "comments": [] + } } \ No newline at end of file diff --git a/test/fixtures/jsx/basic/3/expected.json b/test/fixtures/jsx/basic/3/expected.json index 15d1dbd2a6..164af0ff03 100644 --- a/test/fixtures/jsx/basic/3/expected.json +++ b/test/fixtures/jsx/basic/3/expected.json @@ -217,7 +217,7 @@ } }, "value": " ", - "rawValue": " ", + "rawValue": null, "raw": " " }, { @@ -266,7 +266,7 @@ } }, "value": " ", - "rawValue": " ", + "rawValue": null, "raw": " " }, { @@ -404,6 +404,5 @@ } } ] - }, - "comments": [] + } } \ No newline at end of file diff --git a/test/fixtures/jsx/basic/7/expected.json b/test/fixtures/jsx/basic/7/expected.json index ea3c284959..7aaa7e9e26 100644 --- a/test/fixtures/jsx/basic/7/expected.json +++ b/test/fixtures/jsx/basic/7/expected.json @@ -186,13 +186,12 @@ } }, "value": "\nbar\nbaz\n", - "rawValue": "\nbar\nbaz\n", + "rawValue": null, "raw": "\nbar\nbaz\n" } ] } } ] - }, - "comments": [] + } } \ No newline at end of file diff --git a/test/fixtures/jsx/regression/1/expected.json b/test/fixtures/jsx/regression/1/expected.json index b2f8f62b46..399ec66e40 100644 --- a/test/fixtures/jsx/regression/1/expected.json +++ b/test/fixtures/jsx/regression/1/expected.json @@ -136,7 +136,7 @@ } }, "value": "foo ", - "rawValue": "foo ", + "rawValue": null, "raw": "foo " }, { @@ -283,7 +283,7 @@ } }, "value": " bar", - "rawValue": " bar", + "rawValue": null, "raw": " bar" } ] @@ -303,13 +303,12 @@ } }, "value": " baz", - "rawValue": " baz", + "rawValue": null, "raw": " baz" } ] } } ] - }, - "comments": [] + } } \ No newline at end of file diff --git a/test/fixtures/jsx/regression/4/expected.json b/test/fixtures/jsx/regression/4/expected.json index 4d479d7e6f..f3c24eb4d5 100644 --- a/test/fixtures/jsx/regression/4/expected.json +++ b/test/fixtures/jsx/regression/4/expected.json @@ -136,13 +136,12 @@ } }, "value": "/text", - "rawValue": "/text", + "rawValue": null, "raw": "/text" } ] } } ] - }, - "comments": [] + } } \ No newline at end of file diff --git a/test/index.js b/test/index.js index 593793cd5f..b16648685e 100644 --- a/test/index.js +++ b/test/index.js @@ -52,13 +52,9 @@ function runTest(test) { if (opts.throws) { throw new Error("Expected error message: " + opts.throws + ". But parsing succeeded."); } else { - try { - var mis = misMatch(JSON.parse(test.expect.code), ast); - } catch (err) { - // save(test, ast); - throw err; - } + var mis = misMatch(JSON.parse(test.expect.code), ast); if (mis) { + // save(test, ast); throw new Error(mis); } }