diff --git a/MobiusExtras/Source/BeginnerLoop.swift b/MobiusExtras/Source/BeginnerLoop.swift index 90f673aa..632bf7f9 100644 --- a/MobiusExtras/Source/BeginnerLoop.swift +++ b/MobiusExtras/Source/BeginnerLoop.swift @@ -19,7 +19,7 @@ import MobiusCore -extension Mobius { +public extension Mobius { /// A simplified version of `Mobius.loop` for use in tutorials. /// @@ -27,14 +27,14 @@ extension Mobius { /// /// - Parameter update: A function taking a model and event and returning a new model. @inlinable - public static func beginnerLoop( + static func beginnerLoop( update: @escaping (Model, Event) -> Model ) -> Builder { let realUpdate = Update { model, event in return .next(update(model, event)) } - let effectHandler = AnyConnectable { consumer in + let effectHandler = AnyConnectable { _ in return Connection( acceptClosure: { _ in }, disposeClosure: {} diff --git a/MobiusExtras/Test/WikiTutorialTest.swift b/MobiusExtras/Test/WikiTutorialTest.swift index a99c4e50..92a6a12c 100644 --- a/MobiusExtras/Test/WikiTutorialTest.swift +++ b/MobiusExtras/Test/WikiTutorialTest.swift @@ -18,10 +18,13 @@ // under the License. import MobiusCore +import MobiusExtras import XCTest /// Test cases that reproduce the Getting Started section of the GitHub wiki class WikiTutorialTest: XCTestCase { + // swiftlint:disable function_body_length + func testWikiCreatingALoop() { // Dummy implementation of print() var printedValues: [String] = []