Skip to content

Commit

Permalink
Resolve preprocessor from cwd in test
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jul 11, 2024
1 parent 52109e7 commit d55a50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/render.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test('should render OpenGraph metadata', async () => {
});

test('should use preprocesser for markdown', async () => {
const actual = await render('# Slide A\n\ncontent\n\n# Slide B\n\ncontent', { preprocessor: '../test/preproc.js' });
const actual = await render('# Slide A\n\ncontent\n\n# Slide B\n\ncontent', { preprocessor: './test/preproc.js' });
assert(
/<section data-markdown.*?>\s*<textarea data-template>\s*# Slide A\s+content\s+---\s+# Slide B\s*content\s*<\/textarea>\s*<\/section>/.test(
actual
Expand Down

0 comments on commit d55a50b

Please sign in to comment.