13 lines
425 B
TypeScript
13 lines
425 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { hasSchemaOptionsCacheEntry } from "../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);
|
|
});
|