File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ module ts {
11
11
assert . isTrue ( typeAndDiagnostics && typeAndDiagnostics . diagnostics . length === 0 ) ;
12
12
13
13
let result = Utils . sourceFileToJSON ( typeAndDiagnostics . jsDocTypeExpression . type ) ;
14
+
15
+ // Remove the parserContextFlags from the comparison
16
+ result = result . replace ( / \, \n \s + \" p a r s e r C o n t e x t F l a g s \" : \" J a v a S c r i p t F i l e \" / g, "" ) ;
14
17
assert . equal ( result , expected ) ;
15
18
}
16
19
@@ -998,7 +1001,10 @@ module ts {
998
1001
? JSON . parse ( Utils . sourceFileToJSON ( v ) )
999
1002
: v ;
1000
1003
} , 4 ) ;
1001
-
1004
+
1005
+ // Remove the parserContextFlags from the comparison
1006
+ result = result . replace ( / \, \n \s + \" p a r s e r C o n t e x t F l a g s \" : \" J a v a S c r i p t F i l e \" / g, "" ) ;
1007
+
1002
1008
if ( result !== expected ) {
1003
1009
// Turn on a human-readable diff
1004
1010
if ( typeof require !== 'undefined' ) {
You can’t perform that action at this time.
0 commit comments