From 4f797fe5f38cab06d1bb9c946cd39ce31aaa2483 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Sun, 4 Mar 2012 00:53:02 -0800 Subject: 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).--- test/testabilityPatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/testabilityPatch.js') 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!'); } }); -- cgit v1.2.3