Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed May 26, 2024
1 parent f25446e commit fd97438
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/iOS/Tests/Storage/AsyncStorageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ final class AsyncStorageTests: XCTestCase {
wait(for: [expectation], timeout: 1)
}

@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
func testSetObject() async throws {
try await storage.setObject(user, forKey: "user")
let cachedUser = try await storage.object(forKey: "user")
Expand Down Expand Up @@ -70,6 +71,7 @@ final class AsyncStorageTests: XCTestCase {
wait(for: [expectation], timeout: 1)
}

@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
func testRemoveAll() async throws {
let intStorage = storage.transform(transformer: TransformerFactory.forCodable(ofType: Int.self))
try await given("add a lot of objects") {
Expand Down

0 comments on commit fd97438

Please sign in to comment.