From 0e2cfc4c3e42a41e23ce6f08d04c25a84d0d7d53 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Wed, 8 Feb 2017 23:53:40 -0800 Subject: [PATCH] Added test for declarations --- compiler/ast/Declaration.js | 2 +- test/autotests/render/declaration/expected.html | 1 + test/autotests/render/declaration/template.marko | 1 + test/autotests/render/declaration/test.js | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test/autotests/render/declaration/expected.html create mode 100644 test/autotests/render/declaration/template.marko create mode 100644 test/autotests/render/declaration/test.js diff --git a/compiler/ast/Declaration.js b/compiler/ast/Declaration.js index 2e1a3cede..4877d69ec 100644 --- a/compiler/ast/Declaration.js +++ b/compiler/ast/Declaration.js @@ -12,7 +12,7 @@ class Declaration extends Node { return [ builder.htmlLiteral('') ]; } diff --git a/test/autotests/render/declaration/expected.html b/test/autotests/render/declaration/expected.html new file mode 100644 index 000000000..ea3bb7004 --- /dev/null +++ b/test/autotests/render/declaration/expected.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/test/autotests/render/declaration/template.marko b/test/autotests/render/declaration/template.marko new file mode 100644 index 000000000..ea3bb7004 --- /dev/null +++ b/test/autotests/render/declaration/template.marko @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/test/autotests/render/declaration/test.js b/test/autotests/render/declaration/test.js new file mode 100644 index 000000000..651f5cf87 --- /dev/null +++ b/test/autotests/render/declaration/test.js @@ -0,0 +1,2 @@ +exports.templateData = {}; +exports.vdomSkip = true; \ No newline at end of file