feat(macos): configuration window + curl-backed macOS updater (#71)

This commit is contained in:
2026-05-17 02:23:44 -07:00
committed by GitHub
parent 6ca5cede3e
commit e84674e3b5
100 changed files with 13890 additions and 235 deletions
+17
View File
@@ -0,0 +1,17 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { parseOptionalNumberInputValue } from './input-values';
test('parseOptionalNumberInputValue treats empty input as unset', () => {
assert.deepEqual(parseOptionalNumberInputValue(''), { ok: true, value: undefined });
assert.deepEqual(parseOptionalNumberInputValue(' '), { ok: true, value: undefined });
});
test('parseOptionalNumberInputValue parses finite numeric input', () => {
assert.deepEqual(parseOptionalNumberInputValue('42'), { ok: true, value: 42 });
assert.deepEqual(parseOptionalNumberInputValue(' 3.5 '), { ok: true, value: 3.5 });
});
test('parseOptionalNumberInputValue rejects invalid numeric input', () => {
assert.deepEqual(parseOptionalNumberInputValue('abc'), { ok: false });
});