Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keeshux committed Nov 25, 2024
1 parent 83b502b commit 202de94
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AppStepTests.swift
// OnboardingStepTests.swift
// Passepartout
//
// Created by Davide De Rosa on 11/25/24.
Expand Down Expand Up @@ -27,19 +27,19 @@ import CommonLibrary
import Foundation
import XCTest

final class AppStepTests: XCTestCase {
final class OnboardingStepTests: XCTestCase {
func test_givenNil_whenAdvance_thenAdvancesToFirst() {
let sut: AppStep? = nil
let sut: OnboardingStep? = nil
XCTAssertEqual(sut.nextStep, .migrateV3)
}

func test_givenMid_whenAdvance_thenAdvancesToNext() {
let sut: AppStep? = .migrateV3
let sut: OnboardingStep? = .migrateV3
XCTAssertEqual(sut.nextStep, .community)
}

func test_givenLast_whenAdvance_thenDoesNotAdvance() {
let sut: AppStep? = .doneV3
let sut: OnboardingStep? = .doneV3
XCTAssertEqual(sut.nextStep, .doneV3)
}
}

0 comments on commit 202de94

Please sign in to comment.