Skip to content

Commit feb7b74

Browse files
committed
Fix tests
1 parent 745bb00 commit feb7b74

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ test("Closure Identifiers") {
329329
}
330330

331331
func checkArray<T>(_ array: [T]) throws where T: TypedArrayElement {
332-
try expectEqual(JSTypedArray(array).toString!(), .string(jsStringify(array)))
332+
try expectEqual(JSTypedArray(array).objectRef.toString!(), .string(jsStringify(array)))
333333
}
334334

335335
func jsStringify(_ array: [Any]) -> String {
@@ -339,7 +339,7 @@ func jsStringify(_ array: [Any]) -> String {
339339
test("TypedArray") {
340340
let numbers = [UInt8](0 ... 255)
341341
let typedArray = JSTypedArray(numbers)
342-
try expectEqual(typedArray[12], .number(12))
342+
try expectEqual(typedArray[12], 12)
343343

344344
try checkArray([0, .max, 127, 1] as [UInt8])
345345
try checkArray([0, 1, .max, .min, -1] as [Int8])
@@ -374,5 +374,5 @@ test("TypedArray_Mutation") {
374374
for i in 0..<100 {
375375
try expectEqual(i, array[i])
376376
}
377-
try expectEqual(array.toString!(), .string(jsStringify(Array(0..<100))))
377+
try expectEqual(array.objectRef.toString!(), .string(jsStringify(Array(0..<100))))
378378
}

0 commit comments

Comments
 (0)