From cb64be965b63881d6bd22a03634471a4d0f327b8 Mon Sep 17 00:00:00 2001 From: ludbek Date: Mon, 11 Jul 2016 20:34:03 +0545 Subject: [PATCH] removed stupid test --- test/mithril.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/mithril.js b/test/mithril.js index 5bffbb01..c87bc142 100644 --- a/test/mithril.js +++ b/test/mithril.js @@ -225,24 +225,4 @@ describe("m()", function () { expect(m.bind(m, component, args).to.throw(); }) - - it("even proxies a function to m.component if it has .view() method", function () { - var spy = sinon.spy() - - var component = function () {}; - - var component.controller = spy; - var component.view = function () { - return m("div", "testing") - } - - var args = {age: 12} - - m(component, args).controller() - expect(spy.firstCall).to.have.been.calledWith(args) - - m.component(component, args).controller() - expect(spy.secondCall).to.have.been.calledWith(args) - }); - })