Skip to content

Commit 875e0ac

Browse files
committed
test(ios): assert pending Google marker load applies the icon
groundAnchor is already set during apply. Asserting marker.icon identity proves the deferred completion actually ran setIcon.
1 parent 39e6774 commit 875e0ac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package/iosTests/GoogleMarkerVisualApplierTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ final class GoogleMarkerVisualApplierTests: XCTestCase {
2424

2525
XCTAssertEqual(completions.count, 1)
2626

27-
completions[0](makeIcon())
27+
let icon = makeIcon()
28+
completions[0](icon)
2829

30+
XCTAssertTrue(marker.icon === icon)
2931
XCTAssertEqual(marker.groundAnchor.x, 1, accuracy: 0.0001)
3032
XCTAssertEqual(marker.groundAnchor.y, 1, accuracy: 0.0001)
3133
}

0 commit comments

Comments
 (0)