Sha256: d8974fc4b987649fec017091ef0dbd028a033c0fded8aea7adaf035c5ae3cd07
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
//___FILEHEADER___ import XCTest @testable import ___PROJECTNAME___ class ___FILEBASENAMEASIDENTIFIER___: XCTestCase { // MARK: - Test doubles class PresenterSpy: ___VARIABLE_productName___Presentable { // var presentLoadingViewCalled = false // var presentErrorCalled = false // var presentLoading: Bool = false // var error: Error? // func presentLoadingView(_ show: Bool) { // presentLoadingViewCalled = true // presentLoading = show // } // // func present(_ error: Error) { // presentErrorCalled = true // self.error = error // } } // MARK: - Properties var sut: ___VARIABLE_productName___Interactor! var presenterSpy: PresenterSpy! lazy var moduleConfiguration: ModuleConfiguration = { let moduleConfiguration = ModuleConfiguration() // moduleConfiguration.add(module: MockAnalyticsService, interface: AnalyticsService.self) return moduleConfiguration }() // MARK: - Test lifecycle override func setUp() { super.setUp() presenterSpy = PresenterSpy() sut = ___VARIABLE_productName___Interactor(moduleConfiguration) sut.presenter = presenterSpy } // MARK: - Tests func test() { } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blue_printer-0.1.5 | Clean Swift Tests.xctemplate/___FILEBASENAME___InteractorTests.swift |