Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinChangCC committed May 22, 2024
1 parent a6c9f71 commit 1583225
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import SnapshotTesting
import TestUtilities
import XCTest

@MainActor
final class ColorsSectionControllerSnapshotTests: XCTestCase {
@MainActor
func testDefaultViewModel() {
let sectionController = ColorsSectionController(model: [.red, .green, .blue])
let container = SectionSnapshotContainer(sectionController: sectionController, width: 375)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import SnapshotTesting
import TestUtilities
import XCTest

@MainActor
final class NumbersSectionControllerSnapshotTests: XCTestCase {
@MainActor
func testDefaultViewModel() {
let model = NumbersSectionViewModel(numbers: Array(0..<10), navigation: MockNumbersSectionNavigation())
let sectionController = NumbersSectionController(model: model)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ final class BaseSectionControllerTests: XCTestCase {
XCTAssert(sectionController.delegate === sectionController)
}

internal func testFlowDelegateIsSelf() {
@MainActor
func testFlowDelegateIsSelf() {
let sectionController = BaseSectionController()
XCTAssert(sectionController.flowDelegate === sectionController)
}

@available(iOS 11.0, *)
@MainActor
@available(iOS 11.0, *)
func testDragDelegateIsSelf() {
let sectionController = BaseSectionController()
XCTAssert(sectionController.dragDelegate === sectionController)
Expand Down

0 comments on commit 1583225

Please sign in to comment.