Skip to content

Commit

Permalink
fix: add inputPath test
Browse files Browse the repository at this point in the history
  • Loading branch information
learosema committed Oct 3, 2024
1 parent 291ea70 commit a15cb34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/transforms/template-data.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,15 @@ describe('handleTemplateFile function', () => {
const PAGE_TEST = [
'page.url: {{ page.url }}',
'page.filePathStem: {{ page.filePathStem }}',
'page.inputPath: {{ page.inputPath }}',
'page.outputPath: {{ page.outputPath }}',
'page.outputFileExtension: {{ page.outputFileExtension }}',
].join('\n');

const PAGE_TEST_EXPECTED = [
'page.url: /index.html',
'page.filePathStem: /index',
'page.inputPath: index.html',
'page.outputPath: public' + path.sep + 'index.html',
'page.outputFileExtension: html',
].join('\n');
Expand Down

0 comments on commit a15cb34

Please sign in to comment.