Tests: group together tests with/without components

This commit is contained in:
Pierre-Yves Gerardy 2017-02-19 00:01:05 +01:00
parent eccea68212
commit d7f39a8254
5 changed files with 145 additions and 142 deletions

View file

@ -22,20 +22,20 @@ o.spec("mount", function() {
render = coreRenderer($window).render
})
o("throws on invalid `root` DOM node", function() {
o("throws on invalid component", function() {
var threw = false
try {
mount(null, {view: function() {}})
mount(root, {})
} catch (e) {
threw = true
}
o(threw).equals(true)
})
o("throws on invalid component", function() {
o("throws on invalid `root` DOM node", function() {
var threw = false
try {
mount(root, {})
mount(null, {view: function() {}})
} catch (e) {
threw = true
}