Skip to content

Commit cbd7336

Browse files
committed
Changed how parserContextFlags are handled in tests
(cherry picked from commit b5da802)
1 parent 086fb0e commit cbd7336

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/cases/unittests/jsDocParsing.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ module ts {
1212

1313
let result = Utils.sourceFileToJSON(typeAndDiagnostics.jsDocTypeExpression.type);
1414

15-
// Remove the parserContextFlags from the comparison
16-
result = result.replace(/\,\n\s+\"parserContextFlags\": \"JavaScriptFile\"/g, "");
1715
assert.equal(result, expected);
1816
}
1917

@@ -1002,9 +1000,6 @@ module ts {
10021000
: v;
10031001
}, 4);
10041002

1005-
// Remove the parserContextFlags from the comparison
1006-
result = result.replace(/\,\n\s+\"parserContextFlags\": \"JavaScriptFile\"/g, "");
1007-
10081003
if (result !== expected) {
10091004
// Turn on a human-readable diff
10101005
if (typeof require !== 'undefined') {

0 commit comments

Comments
 (0)