Skip to content

Commit c5bd6a6

Browse files
committed
adjust test
1 parent e56f4d8 commit c5bd6a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/fs/get_content.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ import * as assert from "uvu/assert";
44
import { get_base_documentation } from "./get_content";
55
import * as path from "path";
66

7+
const repo = path.join(__dirname, "fixtures", "repo-1");
8+
79
const get_docs = suite("get_base_documentation");
810
const get_pkg_docs = suite("get_package_docuementation");
911

1012
get_docs("gets the api documentation correctly", async () => {
11-
const content = await get_base_documentation(
12-
"documentation",
13-
path.join(__dirname, "fixtures", "repo-1")
14-
);
13+
const content = await get_base_documentation("documentation", repo);
1514

1615
assert.equal(content.api, [
1716
["01-one.md", "file-one\n"],

0 commit comments

Comments
 (0)