Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jimmy0251/cd63ce5a3849e630769fbc323017d0ef to your computer and use it in GitHub Desktop.
Save jimmy0251/cd63ce5a3849e630769fbc323017d0ef to your computer and use it in GitHub Desktop.
import XCTest
import UIPilot
@testable import TodoApp
class AddTaskVMTest: XCTestCase {
var viewModel: AddTaskVM!
var taskRepository: TaskRepository!
var uipilot: UIPilot<AppRoute>!
override func setUpWithError() throws {
viewModel = AddTaskVM()
taskRepository = Injector.assembler.resolver.resolve(TaskRepository.self)!
uipilot = Injector.assembler.resolver.resolve(UIPilot<AppRoute>.self)!
uipilot.push(.Add)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment