mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 15:42:01 +03:00
🎯 What: Tests were added for previously untested parts of `SumEngine`, primarily covering `evaluateExpression`, unknown base unit handling in `addUnit`, numeric values in `setVariable`, and type mappings (dates, percents) in `addFunction`'s arguments. 📊 Coverage: - `addUnit` error on unknown `baseUnitId` - `addFunction` handling conversion of `percent` and `date` arguments to `ExtensionValue` - `setVariable` with plain numbers - `evaluateExpression` retrieving the exact raw `Value` ✨ Result: Increased unit test line coverage for `src/engine/index.ts` covering previously overlooked functions and type mapping corner cases in the extension API. Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| engine | ||
| ui | ||
| extensions.test.ts | ||
| extensions.ts | ||
| i18n.test.ts | ||
| i18n.ts | ||
| logger.test.ts | ||
| logger.ts | ||
| main.test.ts | ||
| main.ts | ||
| storage.test.ts | ||
| storage.ts | ||
| updater.test.ts | ||
| updater.ts | ||
| workspace.test.ts | ||
| workspace.ts | ||