mirror of
https://github.com/morluto/rea.git
synced 2026-10-28 18:35:53 +00:00
14 lines
450 B
TypeScript
14 lines
450 B
TypeScript
import { expect, it } from "vitest";
|
|
|
|
import { javaScriptSemanticQueryInputSchema } from "./javascriptSemanticQuerySchemas.js";
|
|
|
|
it("rejects a source-map authority setting that the query does not consume", () => {
|
|
expect(
|
|
javaScriptSemanticQueryInputSchema.safeParse({
|
|
seed: { kind: "endpoint", value: "/api" },
|
|
direction: "forward-influence",
|
|
source_map_authority: { authority: "none" },
|
|
}).success,
|
|
).toBe(false);
|
|
});
|