Skip to content

Commit e77481c

Browse files
committed
Move yaml examples to pass test fixtures
1 parent fad4c13 commit e77481c

12 files changed

+3
-45
lines changed

tests/md2html/md2html.test.js renamed to tests/md2html/md2html.test.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { describe, test, expect } from "vitest";
55
import assert from "node:assert";
66

77
const folder = "./tests/md2html/fixtures/";
8-
describe("v3.0 - Validate examples", async () => {
8+
describe("md2html", async () => {
99
readdirSync(folder, { withFileTypes: true })
1010
.filter((entry) => entry.isFile() && /\.md$/.test(entry.name))
1111
.forEach((entry) => {
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/v3.0/examples.test.js renamed to tests/v3.0/schema.test.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const parseYamlFromFile = (filePath) => {
2727
setMetaSchemaOutputFormat(BASIC);
2828

2929
const validateOpenApi = await validate("./schemas/v3.0/schema.yaml");
30-
const folder = './examples/v3.0/';
30+
const folder = './tests/v3.0/pass/';
3131

32-
describe("v3.0 - Validate examples", async () => {
32+
describe("pass", async () => {
3333
readdirSync(folder, { withFileTypes: true })
3434
.filter((entry) => entry.isFile() && /\.yaml$/.test(entry.name))
3535
.forEach((entry) => {

tests/v3.1/examples.test.js

-42
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)