diff --git a/api/tests/test-mount.js b/api/tests/test-mount.js index dcee259a..5afd9c39 100644 --- a/api/tests/test-mount.js +++ b/api/tests/test-mount.js @@ -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() { diff --git a/api/tests/test-router.js b/api/tests/test-router.js index c624789b..f43605e1 100644 --- a/api/tests/test-router.js +++ b/api/tests/test-router.js @@ -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}} diff --git a/render/tests/test-render.js b/render/tests/test-render.js index 2f3ebb9a..82e5ddba 100644 --- a/render/tests/test-render.js +++ b/render/tests/test-render.js @@ -1,6 +1,7 @@ "use strict" var o = require("../../ospec/ospec") +var components = require("../../test-utils/components") var domMock = require("../../test-utils/domMock") var vdom = require("../../render/render") @@ -118,7 +119,7 @@ o.spec("render", function() { o(oninit.callCount).equals(0) o(onbeforeupdate.callCount).equals(0) }) - o("does not try to re-initialize a factory component whose view has thrown", function() { + o("does not try to re-initialize a closure component whose view has thrown", function() { var oninit = o.spy() var onbeforeupdate = o.spy() function A() { @@ -141,7 +142,7 @@ o.spec("render", function() { o(oninit.callCount).equals(1) o(onbeforeupdate.callCount).equals(0) }) - o("does not try to re-initialize a factory component whose oninit has thrown", function() { + o("does not try to re-initialize a closure component whose oninit has thrown", function() { var oninit = o.spy(function(vnode) {throw new Error("error")}) var onbeforeupdate = o.spy() function A() { @@ -164,7 +165,7 @@ o.spec("render", function() { o(oninit.callCount).equals(1) o(onbeforeupdate.callCount).equals(0) }) - o("does not try to re-initialize a factory component whose factory has thrown", function() { + o("does not try to re-initialize a closure component whose closure has thrown", function() { function A() { throw new Error("error") }