diff options
| author | Andres Ornelas | 2010-08-04 11:47:10 -0700 |
|---|---|---|
| committer | Andres Ornelas | 2010-08-04 11:47:10 -0700 |
| commit | 26ed747588d2e7bceddcb4ccd9bacd5f51b9fec8 (patch) | |
| tree | 8e4fcf0b64b3af10532ba31fce6ca91fd396e4ae /src/scenario/Matcher.js | |
| parent | ec12285c9d213a50b86b2ff8d968686acd6d1693 (diff) | |
| download | angular.js-26ed747588d2e7bceddcb4ccd9bacd5f51b9fec8.tar.bz2 | |
test passing with repeater.count
Diffstat (limited to 'src/scenario/Matcher.js')
| -rw-r--r-- | src/scenario/Matcher.js | 3 |
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'); }; }; |
