replace inex.md with README.md in test fixtures

This commit is contained in:
Ola Rubaj 2024-05-09 02:08:25 +02:00
parent 539fffeb55
commit 85de6f7878
3 changed files with 2 additions and 5 deletions

View File

@ -1,9 +1,6 @@
import * as path from "path"; import * as path from "path";
// import * as url from "url";
import { getPermalinks } from "../src/utils"; import { getPermalinks } from "../src/utils";
// const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
// const markdownFolder = path.join(__dirname, "/fixtures/content");
const markdownFolder = path.join( const markdownFolder = path.join(
".", ".",
"test/fixtures/content" "test/fixtures/content"
@ -12,12 +9,12 @@ const markdownFolder = path.join(
describe("getPermalinks", () => { describe("getPermalinks", () => {
test("should return an array of permalinks", () => { test("should return an array of permalinks", () => {
const expectedPermalinks = [ const expectedPermalinks = [
"/", // /index.md "/README",
"/abc", "/abc",
"/blog/first-post", "/blog/first-post",
"/blog/Second Post", "/blog/Second Post",
"/blog/third-post", "/blog/third-post",
"/blog", // /blog/index.md "/blog/README",
"/blog/tutorials/first-tutorial", "/blog/tutorials/first-tutorial",
"/assets/Pasted Image 123.png", "/assets/Pasted Image 123.png",
]; ];