diff --git a/front_matter/any_test.ts b/front_matter/any_test.ts index 7fe1ee3eb..6fff316f3 100644 --- a/front_matter/any_test.ts +++ b/front_matter/any_test.ts @@ -1,6 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { test } from "./test.ts"; import { extract } from "./any.ts"; import { runExtractJsonTests, @@ -8,20 +7,10 @@ import { runExtractTypeErrorTests, runExtractYamlTests1, runExtractYamlTests2, - runTestInvalidInputTests, - runTestValidInputTests, } from "./_test_utils.ts"; // YAML // -Deno.test("test() handles valid input", () => { - runTestValidInputTests("yaml", test); -}); - -Deno.test("test() handles invalid input", () => { - runTestInvalidInputTests("yaml", test); -}); - Deno.test("extract() extracts type error on invalid input", () => { runExtractTypeErrorTests("yaml", extract); }); @@ -36,14 +25,6 @@ Deno.test("extract() parses yaml delineate by `---yaml`", async () => { // JSON // -Deno.test("test() handles valid json input", () => { - runTestValidInputTests("json", test); -}); - -Deno.test("test() handles invalid json input", () => { - runTestInvalidInputTests("json", test); -}); - Deno.test("extract() extracts type error on invalid json input", () => { runExtractTypeErrorTests("json", extract); }); @@ -54,14 +35,6 @@ Deno.test("extract() parses json delineate by ---json", async () => { // TOML // -Deno.test("test() test valid input true", () => { - runTestValidInputTests("toml", test); -}); - -Deno.test("test() handles invalid toml input false", () => { - runTestInvalidInputTests("toml", test); -}); - Deno.test("extract() extracts type error on invalid toml input", () => { runExtractTypeErrorTests("toml", extract); }); diff --git a/front_matter/json_test.ts b/front_matter/json_test.ts index ad63ffec3..9859ffb74 100644 --- a/front_matter/json_test.ts +++ b/front_matter/json_test.ts @@ -1,23 +1,12 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { test } from "./test.ts"; import { extract } from "./json.ts"; import { runExtractJsonTests, runExtractTypeErrorTests, - runTestInvalidInputTests, - runTestValidInputTests, } from "./_test_utils.ts"; import { assertEquals } from "@std/assert/equals"; -Deno.test("test() handles valid input", () => { - runTestValidInputTests("json", test); -}); - -Deno.test("test() handles invalid input", () => { - runTestInvalidInputTests("json", test); -}); - Deno.test("json() extracts type error on invalid input", () => { runExtractTypeErrorTests("json", extract); }); diff --git a/front_matter/toml_test.ts b/front_matter/toml_test.ts index e8f6c1a6f..a96e79046 100644 --- a/front_matter/toml_test.ts +++ b/front_matter/toml_test.ts @@ -1,24 +1,13 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { test } from "./test.ts"; import { extract } from "./toml.ts"; import { runExtractTomlTests, runExtractTomlTests2, runExtractTypeErrorTests, - runTestInvalidInputTests, - runTestValidInputTests, } from "./_test_utils.ts"; import { assertEquals } from "@std/assert/equals"; -Deno.test("toml() tests valid input true", () => { - runTestValidInputTests("toml", test); -}); - -Deno.test("toml() tests invalid input false", () => { - runTestInvalidInputTests("toml", test); -}); - Deno.test("toml() extracts type error on invalid input", () => { runExtractTypeErrorTests("toml", extract); }); diff --git a/front_matter/yaml_test.ts b/front_matter/yaml_test.ts index ced52543c..41d7e793e 100644 --- a/front_matter/yaml_test.ts +++ b/front_matter/yaml_test.ts @@ -1,24 +1,13 @@ // 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"; import { assertEquals } from "@std/assert/equals"; -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); });