Files
dbx/packages/app-tests/schemaOptions.test.ts
T
t8y2 fabf2172e4 chore: migrate test runner from node:test/tsx to vitest
155 files, 1091 tests, 4.3s (2x faster than previous 9.1s).
2026-06-08 01:17:27 +08:00

13 lines
442 B
TypeScript

import { test } from "vitest";
import assert from "node:assert/strict";
import { hasSchemaOptionsCacheEntry } from "../../apps/desktop/src/composables/useSchemaOptions.ts";
test("treats an empty schema option list as a loaded cache entry", () => {
const options = {
"conn:db": [],
};
assert.equal(hasSchemaOptionsCacheEntry(options, "conn:db"), true);
assert.equal(hasSchemaOptionsCacheEntry(options, "conn:other"), false);
});