aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scenario/Matcher.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scenario/Matcher.js b/src/scenario/Matcher.js
index b9787050..326bb948 100644
--- a/src/scenario/Matcher.js
+++ b/src/scenario/Matcher.js
@@ -10,11 +10,12 @@ Matcher.addMatcher = function(name, matcher) {
$scenario.addFuture(
'expect ' + future.name + ' ' + name + ' ' + expected,
function(done){
- if (matcher(future.value, expected))
+ if (!matcher(future.value, expected))
throw "Expected " + expected + ' but was ' + future.value;
done();
}
);
+ dump('future added');
};
};