Files
Jyotisha/frontend/tests/profile-persistence.test.ts
T
2026-07-18 11:46:42 +08:00

9 lines
335 B
TypeScript

import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
test("upserts a missing profile when saving account details", () => {
const source = readFileSync(new URL("../src/app/page.tsx", import.meta.url), "utf8");
assert.match(source, /\.from\("profiles"\)\s*\.upsert\(/);
});