mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
@@ -11,6 +11,9 @@ module ts {
|
||||
assert.isTrue(typeAndDiagnostics && typeAndDiagnostics.diagnostics.length === 0);
|
||||
|
||||
let result = Utils.sourceFileToJSON(typeAndDiagnostics.jsDocTypeExpression.type);
|
||||
|
||||
// Remove the parserContextFlags from the comparison
|
||||
result = result.replace(/\,\n\s+\"parserContextFlags\": \"JavaScriptFile\"/g, "");
|
||||
assert.equal(result, expected);
|
||||
}
|
||||
|
||||
@@ -998,7 +1001,10 @@ module ts {
|
||||
? JSON.parse(Utils.sourceFileToJSON(v))
|
||||
: v;
|
||||
}, 4);
|
||||
|
||||
|
||||
// Remove the parserContextFlags from the comparison
|
||||
result = result.replace(/\,\n\s+\"parserContextFlags\": \"JavaScriptFile\"/g, "");
|
||||
|
||||
if (result !== expected) {
|
||||
// Turn on a human-readable diff
|
||||
if (typeof require !== 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user