REPOSITORY
tymict/agri-hmi Private
[참조 MVP] 농기계 운용 HMI — ICU 텔레메트리를 운전자용 상태·경보·진행률 View Model로 변환합니다.
https://git.agrithing.ai/tymict/agri-hmi.git 42be0a1 feat: adopt typescript HMI SDV reference implementation
07d7c72 ci: add language-specific static and dynamic analysis
cfe9cc6 docs: define component scope and interface contract
79b0483 ci: verify contract tests and evidence package
781167f feat: add executable reference MVP
7b0c599 docs: define component scope and interface contract
1 items · main
·/ tests/component.test.mjs
javascript · 415 B · fdd7b92 Download
import test from 'node:test';import assert from 'node:assert/strict';import { toViewModel } from '../src/component.mjs';test('maps ICU telemetry to an operator view model', () => { const view = toViewModel({ mode: 'AUTO', speed_mps: 1.4, completed_area_ha: 2.1, total_area_ha: 3, faults: [] }); assert.equal(view.system, 'NORMAL'); assert.equal(view.progress_percent, 70); assert.deepEqual(view.alerts, []); });