Skip to content

Commit bbd617a

Browse files
committed
Slightly incorrect use of filePathStem in tests
1 parent f422405 commit bbd617a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/EleventyTest-PageData.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test("#3794: page.inputPathDir and page.dir (with file slug and index)", async (
4949
let elev = new Eleventy("./test/stubs-virtual/", undefined, {
5050
config: function(eleventyConfig) {
5151
eleventyConfig.addTemplate("yawn/index.njk", `{{ page.inputPathDir }} and {{ page.dir }}`, {
52-
permalink: "/{{ page.filePathStem }}.{{ page.outputFileExtension }}"
52+
permalink: "{{ page.filePathStem }}.{{ page.outputFileExtension }}"
5353
});
5454
}
5555
});
@@ -65,7 +65,7 @@ test("#3794: page.inputPathDir and page.dir (with file slug and not-index)", asy
6565
let elev = new Eleventy("./test/stubs-virtual/", undefined, {
6666
config: function(eleventyConfig) {
6767
eleventyConfig.addTemplate("yawn/test.njk", `{{ page.inputPathDir }} and {{ page.dir }}`, {
68-
permalink: "/{{ page.filePathStem }}.{{ page.outputFileExtension }}"
68+
permalink: "{{ page.filePathStem }}.{{ page.outputFileExtension }}"
6969
});
7070
}
7171
});
@@ -86,7 +86,7 @@ test("#3794: page.inputPathDir and page.dir (paginated with file slug and not-in
8686
data: "data",
8787
size: 1,
8888
},
89-
permalink: "/{{ pagination.pageNumber }}/{{ page.filePathStem }}.{{ page.outputFileExtension }}"
89+
permalink: "/{{ pagination.pageNumber }}{{ page.filePathStem }}.{{ page.outputFileExtension }}"
9090
});
9191
}
9292
});

0 commit comments

Comments
 (0)