Additional test for root node with dynamic id of a component with a component.js file.

This commit is contained in:
Austin Kelleher 2017-06-12 15:53:51 -04:00
parent 11580da273
commit 4e52d66aa9
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
module.exports = {};

View File

@ -0,0 +1,3 @@
$ var id = 'abc123';
<div id=id/>

View File

@ -0,0 +1,6 @@
var expect = require('chai').expect;
exports.checkError = function(e) {
var message = e.toString();
expect(message).to.contain('https://github.com/marko-js/marko/wiki/Error:-Dynamic-root-HTML-element-id-attribute');
};