File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ describe("Invalid syntax", () => {
164
164
message . includes ( "invalid.json: JSON.parse: end of data while reading object contents" ) || // Firefox
165
165
message . includes ( "invalid.json: JSON Parse error: Expected '}'" ) || // Safari
166
166
message . includes ( "invalid.json: JSON.parse Error: Invalid character" ) || // Edge
167
- message . includes ( "invalid.json: Syntax error" ) // IE
167
+ message . includes ( "invalid.json: Syntax error" ) || // IE
168
+ message . includes ( "Expected property name or \'}\' in JSON at position 2" )
168
169
) ,
169
170
path : [ ] ,
170
171
source : message => message . endsWith ( "test/specs/invalid/invalid.json" ) ,
@@ -318,7 +319,8 @@ describe("Invalid syntax", () => {
318
319
message . includes ( "invalid.json: JSON.parse: end of data while reading object contents" ) || // Firefox
319
320
message . includes ( "invalid.json: JSON Parse error: Expected '}'" ) || // Safari
320
321
message . includes ( "invalid.json: JSON.parse Error: Invalid character" ) || // Edge
321
- message . includes ( "invalid.json: Syntax error" ) // IE
322
+ message . includes ( "invalid.json: Syntax error" ) || // IE
323
+ message . includes ( "Expected property name or \'}\' in JSON at position 2" ) // Chrome
322
324
) ,
323
325
path : [ "foo" ] ,
324
326
source : message => message . endsWith ( "/test/" ) || message . startsWith ( "http://localhost" ) ,
Original file line number Diff line number Diff line change @@ -67,9 +67,12 @@ describe("Usage", () => {
67
67
}
68
68
} ) ;
69
69
70
- expect ( parser . $refs . propertyMap ) . to . deep . equal ( {
71
- "#/properties/bar" : path . abs ( "/" ) + "#/properties/foo" ,
72
- "#/properties/baz" : path . abs ( "/" ) + "#/properties/foo/properties/id"
73
- } ) ;
70
+ expect ( parser . $refs . propertyMap [ "#/properties/bar" ] ) . to . equal ( path . abs ( "/" ) + "#/properties/foo" ) ;
71
+ expect ( parser . $refs . propertyMap [ "#/properties/baz" ] ) . to . equal ( path . abs ( "/" ) + "#/properties/foo/properties/id" ) ;
72
+ // const expected = {
73
+ // "#/properties/bar": path.abs("/") + "#/properties/foo",
74
+ // "#/properties/baz": path.abs("/") + "#/properties/foo/properties/id"
75
+ // };
76
+ // expect(parser.$refs.propertyMap).to.deep.equal(expected);
74
77
} ) ;
75
78
} ) ;
You can’t perform that action at this time.
0 commit comments