import { readFileSync } from 'node:fs' import { describe, expect, it } from 'vitest' const source = readFileSync(new URL('./HealthApp.vue', import.meta.url), 'utf8') describe('HealthApp Sky UI contract', () => { it('uses the shared page, navbar, scroll owner, and pill navigation', () => { expect(source).toContain(' { expect(source).toContain("phone.t('Apps.health.name')") expect(source).toContain("phone.t('Apps.health.tabs.today')") expect(source).toContain("phone.t('Apps.health.medicalId.title')") }) it('uses the real Health NUI data flow', () => { expect(source).toContain('void health.load()') expect(source).toContain("nuiCall('calls:dial'") expect(source).toContain('health.saveMedicalId') }) })