Tests: factory => closure components

This commit is contained in:
Pierre-Yves Gerardy 2017-02-19 00:14:24 +01:00
parent d7f39a8254
commit a8e5189f0b
3 changed files with 6 additions and 5 deletions

View file

@ -60,7 +60,7 @@ o.spec("mount", function() {
o(root.firstChild.nodeName).equals("DIV")
})
o("renders into `root` factory (factory component)", function() {
o("renders into `root` (closure component)", function() {
mount(root, function(){
return {
view : function() {

View file

@ -82,7 +82,7 @@ o.spec("route", function() {
})
o("routed mount points can redraw synchronously (factory component)", function() {
o("routed mount points can redraw synchronously (closure component)", function() {
var view = o.spy()
function Cmp() {return {view: view}}