aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocksSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-12-14 09:28:16 +0100
committerMisko Hevery2012-01-25 11:46:34 -0800
commit84823b2eff21060c0883f6b4da5573380381c1a2 (patch)
tree587baea34e7e8c7b56c087e9f8705c0f55a8970b /test/angular-mocksSpec.js
parent517811764d3a37806f3e5c4f0c6ca6527e2c189c (diff)
downloadangular.js-84823b2eff21060c0883f6b4da5573380381c1a2.tar.bz2
feature($exceptionHandler): $exceptionHandler now supports var_args
Diffstat (limited to 'test/angular-mocksSpec.js')
-rw-r--r--test/angular-mocksSpec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js
index 073d6cd1..2527ca48 100644
--- a/test/angular-mocksSpec.js
+++ b/test/angular-mocksSpec.js
@@ -307,6 +307,9 @@ describe('ngMock', function() {
var $exceptionHandler = $exceptionHandlerProvider.$get();
$exceptionHandler('MyError');
expect($exceptionHandler.errors).toEqual(['MyError']);
+
+ $exceptionHandler('MyError', 'comment');
+ expect($exceptionHandler.errors[1]).toEqual(['MyError', 'comment']);
}));