mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Changed how parserContextFlags are handled in tests
(cherry picked from commit b5da80202f)
This commit is contained in:
@@ -12,8 +12,6 @@ module ts {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -1002,9 +1000,6 @@ module ts {
|
||||
: 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