Skip to content

Commit

Permalink
Keep a test for #633
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 15, 2019
1 parent 6990ccf commit e29808f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/TemplateRenderNunjucksTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ test("Nunjucks Render Relative Include (using ..) Issue #190", async t => {
"<p>{% include '../dir/included.njk' %}</p>"
);
t.is(await fn(), "<p>HELLO FROM THE OTHER SIDE.</p>");

// should look in _includes too, related to Issue #633
let fn2a = await tr.getCompiledTemplate(
"<p>{% include 'included-relative.njk' %}</p>"
);
t.is(await fn2a(), "<p>akdlsjafkljdskl</p>");

// should look in _includes too Issue #633
// let fn3 = await tr.getCompiledTemplate(
// "<p>{% include '../_includes/included-relative.njk' %}</p>"
// );
// t.is(await fn3(), "<p>akdlsjafkljdskl</p>");
});

test("Nunjucks Render Relative Include (using current dir) Issue #190", async t => {
Expand Down

0 comments on commit e29808f

Please sign in to comment.