mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 18:51:39 +00:00
* feat(ios): add private HealthKit summaries * fix(ios): satisfy Health settings lint * chore(ios): sync Health localization artifacts * chore(ios): refresh generated localization and docs * fix(ios): reject partial Health history * chore(ios): sync Health string catalogs * fix(ios): bridge Health authorization dates * fix(ios): scope Health summaries to today
15 lines
542 B
Swift
15 lines
542 B
Swift
import Foundation
|
|
import Testing
|
|
@testable import OpenClawKit
|
|
|
|
struct HealthCommandsTests {
|
|
@Test func `health summary periods use the node command wire values`() throws {
|
|
#expect(OpenClawHealthCommand.summary.rawValue == "health.summary")
|
|
#expect(OpenClawHealthSummaryPeriod.allCases.map(\.rawValue) == ["today"])
|
|
|
|
let params = OpenClawHealthSummaryParams(period: .today)
|
|
let data = try JSONEncoder().encode(params)
|
|
#expect(String(decoding: data, as: UTF8.self) == #"{"period":"today"}"#)
|
|
}
|
|
}
|