deno.land / std@0.201.0 / front_matter / json_test.ts
1234567891011121314151617181920212223242526// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import extract, { Format, test } from "./json.ts";import { runExtractJSONTests, runExtractTypeErrorTests, runTestInvalidInputTests, runTestValidInputTests,} from "./_test_utils.ts";
Deno.test("[JSON] test valid input true", () => { runTestValidInputTests(Format.JSON, test);});
Deno.test("[JSON] test invalid input false", () => { runTestInvalidInputTests(Format.JSON, test);});
Deno.test("[JSON] extract type error on invalid input", () => { runExtractTypeErrorTests(Format.JSON, extract);});
Deno.test("[JSON] parse json delineate by ---json", async () => { await runExtractJSONTests(extract);});
Version Info