deno.land / std@0.166.0 / encoding / front_matter / json_test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2018-2022 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);});
std

Version Info

Tagged at
a year ago