deno.land / std@0.166.0 / encoding / front_matter / yaml_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
27
28
29
30
31
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import extract, { Format, test } from "./yaml.ts";import { runExtractTypeErrorTests, runExtractYAMLTests1, runExtractYAMLTests2, runTestInvalidInputTests, runTestValidInputTests,} from "./_test_utils.ts";
Deno.test("[YAML] test valid input true", () => { runTestValidInputTests(Format.YAML, test);});
Deno.test("[YAML] test invalid input false", () => { runTestInvalidInputTests(Format.YAML, test);});
Deno.test("[YAML] extract type error on invalid input", () => { runExtractTypeErrorTests(Format.YAML, extract);});
Deno.test("[YAML] parse yaml delineate by `---`", async () => { await runExtractYAMLTests1(extract);});
Deno.test("[YAML] parse yaml delineate by `---yaml`", async () => { await runExtractYAMLTests2(extract);});
std

Version Info

Tagged at
a year ago