Skip to content

Commit 845c489

Browse files
committed
fix unittest
1 parent c7eb76f commit 845c489

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/UICombineExtensionTests/UICombineExtensionTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import XCTest
2-
import UIKit
32
import Combine
43
import CombineExtension
54
@testable import UICombineExtension
6-
5+
#if canImport(UIKit)
6+
import UIKit
77

88
final class UICombineExtensionTests: XCTestCase {
99
var bag = Set<AnyCancellable>()
@@ -53,3 +53,5 @@ private class TestViewModel: ObservableObject {
5353
private class TestViewModelString: ObservableObject {
5454
@Published var text: String = ""
5555
}
56+
57+
#endif

0 commit comments

Comments
 (0)