add more elaborate test
This commit is contained in:
parent
5bf0faf357
commit
e0aa878fc1
1 changed files with 8 additions and 0 deletions
|
|
@ -69,6 +69,14 @@ test('m.trust w/ html entities', function() {
|
|||
equal(dummyEl.innerHTML, '<div>a&b</div>', 'view1 rendered correctly')
|
||||
})
|
||||
|
||||
test('m.trust w/ html entities 2', function() {
|
||||
expect(1)
|
||||
var view1 = m('div', "a", m.trust("&"), "b", m.trust("&"), "c")
|
||||
|
||||
m.render(dummyEl, view1)
|
||||
equal(dummyEl.innerHTML, '<div>a&b&c</div>', 'view1 rendered correctly')
|
||||
})
|
||||
|
||||
test('array item removal', function() {
|
||||
expect(2)
|
||||
var view1 = m('div', {}, [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue