File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
IntegrationTests/TestSuites/Sources/PrimaryTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -359,9 +359,9 @@ try test("Object Decoding") {
359
359
let bigInt : JSValue = js. bi
360
360
361
361
try expectNotNil ( JSObject . construct ( from: object) )
362
- try expectNotNil ( JSObject . construct ( from: function) )
363
- try expectNotNil ( JSObject . construct ( from: symbol) )
364
- try expectNotNil ( JSObject . construct ( from: bigInt) )
362
+ try expectEqual ( JSObject . construct ( from: function) . map { $0 is JSFunction } , . some ( true ) )
363
+ try expectEqual ( JSObject . construct ( from: symbol) . map { $0 is JSSymbol } , . some ( true ) )
364
+ try expectEqual ( JSObject . construct ( from: bigInt) . map { $0 is JSBigInt } , . some ( true ) )
365
365
366
366
try expectNil ( JSFunction . construct ( from: object) )
367
367
try expectNotNil ( JSFunction . construct ( from: function) )
You can’t perform that action at this time.
0 commit comments