From 45ac5e7d85af31d03da9ca57665fd6c81f8e42ea Mon Sep 17 00:00:00 2001 From: xiaody Date: Wed, 15 Jul 2015 22:57:35 +0800 Subject: [PATCH] use the correct reasons --- lib/tests/2.2.7.js | 2 +- lib/tests/2.3.3.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests/2.2.7.js b/lib/tests/2.2.7.js index d8e6ca3..7665089 100644 --- a/lib/tests/2.2.7.js +++ b/lib/tests/2.2.7.js @@ -55,7 +55,7 @@ describe("2.2.7: `then` must return a promise: `promise2 = promise1.then(onFulfi } Object.keys(reasons).forEach(function (stringRepresentation) { - testReason(reasons[stringRepresentation], stringRepresentation); + testReason(reasons[stringRepresentation](), stringRepresentation); }); }); diff --git a/lib/tests/2.3.3.js b/lib/tests/2.3.3.js index 2d5e135..f15de34 100644 --- a/lib/tests/2.3.3.js +++ b/lib/tests/2.3.3.js @@ -350,7 +350,7 @@ describe("2.3.3: Otherwise, if `x` is an object or function,", function () { describe("2.3.3.3.2: If/when `rejectPromise` is called with reason `r`, reject `promise` with `r`", function () { Object.keys(reasons).forEach(function (stringRepresentation) { - testCallingRejectPromiseRejectsWith(reasons[stringRepresentation], stringRepresentation); + testCallingRejectPromiseRejectsWith(reasons[stringRepresentation](), stringRepresentation); }); });