test(front-matter): remove duplicate tests (#5808)

This commit is contained in:
Tim Reichen 2024-08-24 16:51:15 +02:00 committed by GitHub
parent 531145a08b
commit 55fecde77c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 60 deletions

View File

@ -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);
});

View File

@ -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);
});

View File

@ -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);
});

View File

@ -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);
});