Files
openclaw/apps/shared/OpenClawKit/Tests/OpenClawKitTests/HealthCommandsTests.swift
Peter Steinberger 5e45ebe82b feat(ios): add private HealthKit summaries (#105616)
* 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
2026-07-12 12:52:38 -07:00

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"}"#)
}
}