aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/MatcherSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-08-11 12:04:11 -0700
committerMisko Hevery2010-08-11 12:04:11 -0700
commit0c2dd09e781a144c65cd79a0a010f4ebcbd78f24 (patch)
tree85e0082f00e86768dbf6a98aa3b3688550858dc0 /test/scenario/MatcherSpec.js
parent044ecb91c10753c14e1521f95b5f0cd52ff5bf87 (diff)
parentcf331050112ee973b9e8186dc4741028ca22f024 (diff)
downloadangular.js-0c2dd09e781a144c65cd79a0a010f4ebcbd78f24.tar.bz2
Merge branch 'master' of github.com:angular/angular.js
Diffstat (limited to 'test/scenario/MatcherSpec.js')
-rw-r--r--test/scenario/MatcherSpec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/scenario/MatcherSpec.js b/test/scenario/MatcherSpec.js
index c47f0c25..2eddd2bc 100644
--- a/test/scenario/MatcherSpec.js
+++ b/test/scenario/MatcherSpec.js
@@ -27,4 +27,12 @@ describe('Matcher', function () {
expect(e).toEqual('Expected 456 but was 123');
}
});
+ it('should correctly match arrays', function() {
+ var future = $scenario.addFuture('Calculate first future', function(done) {
+ done(['a', 'b']);
+ });
+ matcher = new Matcher(this, future);
+ matcher.toEqual(['a', 'b']);
+ executeFutures();
+ });
}); \ No newline at end of file