Files
t8y2--dbx/packages/app-tests/exportFormats.test.ts
T
2026-07-13 13:09:14 +08:00

8 lines
322 B
TypeScript
Vendored

import { strict as assert } from "node:assert";
import { test } from "vitest";
import { formatCsv } from "../../apps/desktop/src/lib/export/exportFormats.ts";
test("formatCsv preserves query result null display text", () => {
assert.equal(formatCsv(["id", "note"], [[1, null]]), "\"id\",\"note\"\n\"1\",\"NULL\"");
});