Merge branch 'lint' of https://github.com/isiahmeadows/mithril.js into isiahmeadows-lint
Conflicts: mithril.js tests/mithril-tests.js
This commit is contained in:
commit
4f0d479ee7
17 changed files with 4783 additions and 2997 deletions
|
|
@ -56,13 +56,13 @@ describe("m.trust()", function () {
|
|||
|
||||
it("works with trusted content in div", function () {
|
||||
var root = document.createElement("div")
|
||||
m.render(root, m('div', [
|
||||
m('p', '©'),
|
||||
m('p', m.trust('©')),
|
||||
m.trust('©'),
|
||||
m.render(root, m("div", [
|
||||
m("p", "©"),
|
||||
m("p", m.trust("©")),
|
||||
m.trust("©"),
|
||||
]))
|
||||
expect(root.innerHTML).to.equal("<div><p>&copy;</p><p>©</p>©</div>")
|
||||
})
|
||||
|
||||
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue