Ship the receipt pipeline (Livin/Grab/BRI), PocketBase spendings, PM2 ecosystem, and a proper .gitignore that excludes secrets, SQLite data, and media dumps. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
685 B
JavaScript
18 lines
685 B
JavaScript
import assert from "node:assert/strict";
|
|
import { describe, it } from "node:test";
|
|
import { parseDayMonthYear } from "../src/lib/parse-helpers.js";
|
|
|
|
describe("parseDayMonthYear", () => {
|
|
it("parses English months", () => {
|
|
assert.equal(parseDayMonthYear("13 Sep 2026"), "2026-09-13");
|
|
assert.equal(parseDayMonthYear("13 September 2026"), "2026-09-13");
|
|
});
|
|
|
|
it("parses Indonesian months", () => {
|
|
assert.equal(parseDayMonthYear("15 Agu 2026"), "2026-08-15");
|
|
assert.equal(parseDayMonthYear("15 Agustus 2026"), "2026-08-15");
|
|
assert.equal(parseDayMonthYear("1 Des 26"), "2026-12-01");
|
|
assert.equal(parseDayMonthYear("1 Mei 2026"), "2026-05-01");
|
|
});
|
|
});
|