deno.land / std@0.224.0 / 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
32
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { test } from "./test.ts";import { extract } from "./yaml.ts";import { runExtractTypeErrorTests, runExtractYAMLTests1, runExtractYAMLTests2, runTestInvalidInputTests, runTestValidInputTests,} from "./_test_utils.ts";
Deno.test("yaml() tests valid input true", () => { runTestValidInputTests("yaml", test);});
Deno.test("yaml() tests invalid input false", () => { runTestInvalidInputTests("yaml", test);});
Deno.test("yaml() extracts type error on invalid input", () => { runExtractTypeErrorTests("yaml", extract);});
Deno.test("yaml() parses yaml delineate by `---`", async () => { await runExtractYAMLTests1(extract);});
Deno.test("yaml() parses yaml delineate by `---yaml`", async () => { await runExtractYAMLTests2(extract);});
std

Version Info

Tagged at
3 weeks ago