From 3ae005bd1dc19e2472ae74dd32f560afb0a75b3f Mon Sep 17 00:00:00 2001 From: impinball Date: Fri, 20 Nov 2015 02:53:28 -0500 Subject: [PATCH] Unfix test --- test/mithril.prop.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/mithril.prop.js b/test/mithril.prop.js index c1fe9c23..4be4b1b9 100644 --- a/test/mithril.prop.js +++ b/test/mithril.prop.js @@ -53,14 +53,12 @@ describe("m.prop()", function () { it("returns a thenable when wrapping a Mithril promise", function () { var defer = m.deferred() - var prop = m.prop(defer.promise) - - var promise = prop.then(function () { + var prop = m.prop(defer.promise).then(function () { return "test2" }) defer.resolve("test") - expect(promise()).to.equal("test2") + expect(prop()).to.equal("test2") }) })