Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsalem401 committed Nov 21, 2023
1 parent 5c9eaa7 commit 826ed81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/markdowndb.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ describe("MarkdownDB - default config", () => {
test("can get all tags", async () => {
const dbTags = await mddb.getTags();
const extectedTags = [
{ name: "tag1" },
{ name: "tag2" },
{ name: "tag3" },
{ name: "economy" },
{ name: "politics" },
{ name: "sports" },
Expand Down Expand Up @@ -289,7 +292,7 @@ describe("MarkdownDB - custom config", () => {
await mddb.init();
await mddb.indexFolder({
folderPath: pathToContentFixture,
ignorePatterns: [/\/ignore\/.*/],
ignorePatterns: [/[\\/]ignore[\\/].*/],
pathToUrlResolver: (path) =>
path
.replace(/\.mdx?$/, "")
Expand Down

0 comments on commit 826ed81

Please sign in to comment.