diff --git a/test/fixtures/compiler/autotest/invoke-if/expected.js b/test/fixtures/compiler/autotest/invoke-if/expected.js new file mode 100644 index 000000000..3991fff8f --- /dev/null +++ b/test/fixtures/compiler/autotest/invoke-if/expected.js @@ -0,0 +1,14 @@ +function create(__helpers) { + var str = __helpers.s, + empty = __helpers.e, + notEmpty = __helpers.ne, + escapeXml = __helpers.x; + + return function render(data, out) { + if (true) { + console.log("hello"); + } + }; +} + +(module.exports = require("marko").c(__filename)).c(create); diff --git a/test/fixtures/compiler/autotest/invoke-if/template.marko b/test/fixtures/compiler/autotest/invoke-if/template.marko new file mode 100644 index 000000000..fd1fcd3f8 --- /dev/null +++ b/test/fixtures/compiler/autotest/invoke-if/template.marko @@ -0,0 +1 @@ + \ No newline at end of file