aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorVojta Jina2012-03-04 00:53:02 -0800
committerVojta Jina2012-03-05 10:41:51 -0800
commit4f797fe5f38cab06d1bb9c946cd39ce31aaa2483 (patch)
tree16440ff9db8ebf2df7d602f4dd2c412495d2ec1e /test/testabilityPatch.js
parentbbd3a3fd76a3b1f410e0304d5455fc22864796b4 (diff)
downloadangular.js-4f797fe5f38cab06d1bb9c946cd39ce31aaa2483.tar.bz2
refactor(testabilityPatch): Change JSTD fail to more general throw
"fail" is a JSTD specific API, so it's not defined when testing without JSTD (eg SlimJim).
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 1b4f11ba..1b954ea6 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -54,7 +54,7 @@ afterEach(function() {
});
});
if (count) {
- fail('Found jqCache references that were not deallocated!');
+ throw new Error('Found jqCache references that were not deallocated!');
}
});