aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/Matcher.js
diff options
context:
space:
mode:
authorAndres Ornelas2010-08-04 11:47:10 -0700
committerAndres Ornelas2010-08-04 11:47:10 -0700
commit26ed747588d2e7bceddcb4ccd9bacd5f51b9fec8 (patch)
tree8e4fcf0b64b3af10532ba31fce6ca91fd396e4ae /src/scenario/Matcher.js
parentec12285c9d213a50b86b2ff8d968686acd6d1693 (diff)
downloadangular.js-26ed747588d2e7bceddcb4ccd9bacd5f51b9fec8.tar.bz2
test passing with repeater.count
Diffstat (limited to 'src/scenario/Matcher.js')
-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');
};
};