clean up duplicate test
This commit is contained in:
parent
29ee36e967
commit
3682a78880
2 changed files with 18 additions and 23 deletions
|
|
@ -145,15 +145,4 @@ o.spec("onremove", function() {
|
|||
|
||||
o(vnode.dom).notEquals(updated.dom)
|
||||
})
|
||||
o("The remove phase is finalized only once when `done()` is called synchronously from both attrs- and tag.onbeforeremove", function () {
|
||||
var onremove = o.spy()
|
||||
var component = {
|
||||
view: function(){return m('br')},
|
||||
onbeforeremove: function(vnode, done){done()},
|
||||
onremove: onremove
|
||||
}
|
||||
render(root, [{tag: component, attrs: component}])
|
||||
render(root, [])
|
||||
o(onremove.callCount).equals(2)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue