From 937b20984dcd7cb67814660819c8f78e264966d7 Mon Sep 17 00:00:00 2001 From: Derrick Gilland Date: Mon, 27 Jul 2015 11:29:08 -0400 Subject: [PATCH] Update promise.finally test for non-propagation of promise value to finally callback. --- tests/mithril-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mithril-tests.js b/tests/mithril-tests.js index 36c50785..294d2744 100644 --- a/tests/mithril-tests.js +++ b/tests/mithril-tests.js @@ -3916,11 +3916,11 @@ function testMithril(mock) { return prop().message === "error occurred" && error().message === "error occurred" }) test(function() { - // Data returned by then() functions propagate to finally(). + // Data returned by then() functions do *not* propagate to finally(). var data = m.prop(""); var prop = m.request({method: "GET", url: "test"}).then(function() {return "foo"})["finally"](data) mock.XMLHttpRequest.$instances.pop().onreadystatechange() - return prop() === "foo" && data() === "foo" + return prop() === "foo" && data() === "" }) test(function() { // Data returned by finally() functions do *not* propagate to next promise.