Skip to content

Commit 24aac92

Browse files
committed
more precise tests
1 parent 6d83252 commit 24aac92

File tree

1 file changed

+3
-3
lines changed
  • IntegrationTests/TestSuites/Sources/PrimaryTests

1 file changed

+3
-3
lines changed

IntegrationTests/TestSuites/Sources/PrimaryTests/main.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ try test("Object Decoding") {
359359
let bigInt: JSValue = js.bi
360360

361361
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))
365365

366366
try expectNil(JSFunction.construct(from: object))
367367
try expectNotNil(JSFunction.construct(from: function))

0 commit comments

Comments
 (0)