Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiAAPeres committed Oct 19, 2022
1 parent b4626ac commit f079fef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/VitalHealthKitTests/VitalHealthKitStorageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class VitalHealthKitStorageTests: XCTestCase {
let anchor = HKQueryAnchor(fromValue: 1)

XCTAssertNil(storage.read(key: key))
storage.store(entity: .init(key: key, anchor: anchor))
storage.store(entity: .init(key: key, anchor: anchor, date: Date()))

let storedAnchor = storage.read(key: key)?.anchor
XCTAssertNotNil(storedAnchor)
Expand All @@ -27,7 +27,7 @@ class VitalHealthKitStorageTests: XCTestCase {
let key = "key"
let anchor = HKQueryAnchor(fromValue: 1)

storage.store(entity: .init(key: key, anchor: anchor))
storage.store(entity: .init(key: key, anchor: anchor, date: Date()))

let newStorage = VitalHealthKitStorage(storage: .debug)
_ = newStorage.read(key: key)
Expand Down

0 comments on commit f079fef

Please sign in to comment.