From c934d63be33a4aae57bc4fd097ae3dd5ed2bd5c3 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Fri, 12 Feb 2016 17:50:32 -0700 Subject: [PATCH] Marko v3: invoke if test --- .../compiler/autotest/invoke-if/expected.js | 14 ++++++++++++++ .../compiler/autotest/invoke-if/template.marko | 1 + 2 files changed, 15 insertions(+) create mode 100644 test/fixtures/compiler/autotest/invoke-if/expected.js create mode 100644 test/fixtures/compiler/autotest/invoke-if/template.marko 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