diff --git a/test/fixtures/templates/nested-tags-missing-parent/expected.html b/test/fixtures/templates/nested-tags-missing-parent/expected.html new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/templates/nested-tags-missing-parent/template.marko b/test/fixtures/templates/nested-tags-missing-parent/template.marko new file mode 100644 index 000000000..91e5df376 --- /dev/null +++ b/test/fixtures/templates/nested-tags-missing-parent/template.marko @@ -0,0 +1,12 @@ +
+ + + Header content + + + Body content + + + Footer content + +
\ No newline at end of file diff --git a/test/fixtures/templates/nested-tags-missing-parent/test.js b/test/fixtures/templates/nested-tags-missing-parent/test.js new file mode 100644 index 000000000..46fc4d7fe --- /dev/null +++ b/test/fixtures/templates/nested-tags-missing-parent/test.js @@ -0,0 +1,11 @@ +var expect = require('chai').expect; + +exports.templateData = {}; +exports.options = { + handleCompileError: function(e) { + expect(e.toString()).to.contain('Tag not nested within a'); + expect(e.toString()).to.contain(''); + expect(e.toString()).to.contain(''); + expect(e.toString()).to.contain(''); + } +}; \ No newline at end of file