From 826ed814a05315a9acd3b864ec12d994ee46721f Mon Sep 17 00:00:00 2001 From: mohamed yahia Date: Tue, 21 Nov 2023 21:34:25 +0200 Subject: [PATCH] update tests --- src/lib/markdowndb.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/markdowndb.spec.ts b/src/lib/markdowndb.spec.ts index 5066512..585ea47 100644 --- a/src/lib/markdowndb.spec.ts +++ b/src/lib/markdowndb.spec.ts @@ -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" }, @@ -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?$/, "")