Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/unit/schema-validation/zod/simple.test.ts
6452 views
1
/*
2
* simple.test.ts
3
*
4
* Copyright (C) 2025 Posit Software, PBC
5
*
6
*/
7
8
import { unitTest } from "../../../test.ts";
9
import { assertThrows } from "testing/asserts";
10
import { Zod } from "../../../../src/resources/types/zod/schema-types.ts";
11
12
unitTest("zod-schema-basic", async () => {
13
assertThrows(() => Zod.MathMethods.parse("latex"));
14
const result = Zod.MathMethods.parse("katex");
15
});
16