Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Oct 5, 2023
1 parent fb78d50 commit 26a430a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
24 changes: 15 additions & 9 deletions src/get-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ export async function getTests(dirs) {
* }} All marked spec tests
*/
export async function getAllMarkedSpecTests() {
return await getTests({
CommonMark: resolvePath(
"../node_modules/marked-repo/test/specs/commonmark",
),
GFM: resolvePath("../node_modules/marked-repo/test/specs/gfm"),
New: resolvePath("../node_modules/marked-repo/test/specs/new"),
Original: resolvePath("../node_modules/marked-repo/test/specs/original"),
ReDOS: resolvePath("../node_modules/marked-repo/test/specs/redos"),
});
const tests = await getTests([
resolvePath("../node_modules/marked-repo/test/specs/commonmark"),
resolvePath("../node_modules/marked-repo/test/specs/gfm"),
resolvePath("../node_modules/marked-repo/test/specs/new"),
resolvePath("../node_modules/marked-repo/test/specs/original"),
resolvePath("../node_modules/marked-repo/test/specs/redos"),
]);

return {
CommonMark: tests[0],
GFM: tests[1],
New: tests[2],
Original: tests[3],
ReDOS: tests[4],
};
}
8 changes: 0 additions & 8 deletions test/get-tests.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,4 @@ test("get-tests", async (t) => {

assert.ok(tests[0].Tabs);
});

await t.test("getTests(obj)", async () => {
const tests = await getTests({
test: resolvePath("../node_modules/marked-repo/test/specs/commonmark"),
});

assert.ok(tests.test.Tabs);
});
});

0 comments on commit 26a430a

Please sign in to comment.