Commit 40f833d 1 parent 8546bf7 commit 40f833d Copy full SHA for 40f833d
File tree 1 file changed +14
-15
lines changed
BBus/AlarmSettingViewModelTests
1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
8
8
import XCTest
9
+ import Combine
9
10
10
11
class AlarmSettingViewModelTests : XCTestCase {
11
-
12
- override func setUpWithError( ) throws {
13
- // Put setup code here. This method is called before the invocation of each test method in the class.
12
+ enum MOCKMode {
13
+ case success
14
14
}
15
-
16
- override func tearDownWithError ( ) throws {
17
- // Put teardown code here. This method is called after the invocation of each test method in the class.
15
+
16
+ enum TestError : Error {
17
+
18
18
}
19
+
20
+ private var cancellables : Set < AnyCancellable > !
19
21
20
- func testExample ( ) throws {
21
- // This is an example of a functional test case.
22
- // Use XCTAssert and related functions to verify your tests produce the correct results.
22
+ override func setUpWithError ( ) throws {
23
+ self . cancellables = [ ]
24
+ super . setUp ( )
23
25
}
24
26
25
- func testPerformanceExample( ) throws {
26
- // This is an example of a performance test case.
27
- measure {
28
- // Put the code you want to measure the time of here.
29
- }
27
+ override func tearDownWithError( ) throws {
28
+ self . cancellables = nil
29
+ super. tearDown ( )
30
30
}
31
-
32
31
}
You can’t perform that action at this time.
0 commit comments