Skip to content

Commit

Permalink
✅ Fix VersionUpdateManager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed May 27, 2024
1 parent 1dbb97a commit 20b92a1
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@ import ACKategories
import ACKategoriesTesting
import XCTest

@MainActor
@available(tvOS 13.0, iOS 13.0, watchOS 6.0, macOS 10.15, *)
final class VersionUpdateManager_Tests: XCTestCase {
private var fetcher: VersionUpdateFetcher_Mock!

// MARK: - Setup

override func setUp() {
fetcher = .init()
super.setUp()
}

func test_minBuildNumber_lower() async throws {
let fetcher = VersionUpdateFetcher_Mock()
let buildNumber = Int.random(in: 1..<10_000)

fetcher.minBuildNumber = buildNumber - 1
Expand All @@ -29,6 +20,7 @@ final class VersionUpdateManager_Tests: XCTestCase {
}

func test_minBuildNumber_equal() async throws {
let fetcher = VersionUpdateFetcher_Mock()
let buildNumber = Int.random(in: 1..<10_000)

fetcher.minBuildNumber = buildNumber
Expand All @@ -43,6 +35,7 @@ final class VersionUpdateManager_Tests: XCTestCase {
}

func test_minBuildNumber_higher() async throws {
let fetcher = VersionUpdateFetcher_Mock()
let buildNumber = Int.random(in: 1..<10_000)

fetcher.minBuildNumber = buildNumber + 1
Expand Down

0 comments on commit 20b92a1

Please sign in to comment.