webui: calibrate CSV export, trigger threshold and unit display

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Martino Ferrari
2026-08-17 00:55:07 +02:00
co-authored by Claude Sonnet 4.6
parent 4908c039a5
commit 3cb998c5da
3 changed files with 43 additions and 10 deletions
@@ -150,3 +150,7 @@ test('CalTable.list is sorted by source then signal', () => {
assert.deepStrictEqual(t.list().map(e => e.source + '/' + e.signal),
['a/b', 'a/z', 'z/a']);
});
test('normaliseCal strips characters that would corrupt a CSV header', () => {
assert.strictEqual(C.normaliseCal({source: 'w', signal: 's', unit: 'k,V"'}).unit, 'kV');
});