Skip to content

Commit fd0cd44

Browse files
Merge pull request #310 from Iterable/test/mob-1541-html
[MOB-1541] - Convert IterableHtmlMessageViewControllerTests to not use IterableAPI…
2 parents 6343211 + 2b6d830 commit fd0cd44

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/swift-sdk-swift-tests/IterableHtmlMessageViewControllerTests.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class IterableHtmlMessageViewControllerTests: XCTestCase {
2222
}
2323

2424
func testWebViewTopPositioning() {
25-
IterableAPI.initializeForTesting()
2625
checkPositioning(viewPosition: ViewPosition(width: 1234, height: 400, center: CGPoint(x: 617.0, y: 200.0)),
2726
safeAreaInsets: .zero,
2827
inAppHeight: 200,
@@ -31,7 +30,6 @@ class IterableHtmlMessageViewControllerTests: XCTestCase {
3130
}
3231

3332
func testWebViewBottomPositioning() {
34-
IterableAPI.initializeForTesting()
3533
checkPositioning(viewPosition: ViewPosition(width: 1234, height: 400, center: CGPoint(x: 617.0, y: 200.0)),
3634
safeAreaInsets: .zero,
3735
inAppHeight: 200,
@@ -40,7 +38,6 @@ class IterableHtmlMessageViewControllerTests: XCTestCase {
4038
}
4139

4240
func testWebViewCenterPositioning() {
43-
IterableAPI.initializeForTesting()
4441
checkPositioning(viewPosition: ViewPosition(width: 1234, height: 400, center: CGPoint(x: 617.0, y: 200.0)),
4542
safeAreaInsets: .zero,
4643
inAppHeight: 200,
@@ -49,7 +46,6 @@ class IterableHtmlMessageViewControllerTests: XCTestCase {
4946
}
5047

5148
func testWebViewFullPositioning() {
52-
IterableAPI.initializeForTesting()
5349
checkPositioning(viewPosition: ViewPosition(width: 1234, height: 400, center: CGPoint(x: 617.0, y: 200.0)),
5450
safeAreaInsets: .zero,
5551
inAppHeight: 200,
@@ -58,7 +54,6 @@ class IterableHtmlMessageViewControllerTests: XCTestCase {
5854
}
5955

6056
func testWebViewTopPositioningWithSafeAreaInsets() {
61-
IterableAPI.initializeForTesting()
6257
checkPositioning(viewPosition: ViewPosition(width: 1234, height: 400, center: CGPoint(x: 617.0, y: 200.0)),
6358
safeAreaInsets: UIEdgeInsets(top: 25, left: 0, bottom: 30, right: 0),
6459
inAppHeight: 200,
@@ -67,7 +62,6 @@ class IterableHtmlMessageViewControllerTests: XCTestCase {
6762
}
6863

6964
func testWebViewBottomPositioningWithSafeAreaInsets() {
70-
IterableAPI.initializeForTesting()
7165
checkPositioning(viewPosition: ViewPosition(width: 1234, height: 400, center: CGPoint(x: 617.0, y: 200.0)),
7266
safeAreaInsets: UIEdgeInsets(top: 25, left: 0, bottom: 30, right: 0),
7367
inAppHeight: 200,

0 commit comments

Comments
 (0)