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).
This commit is contained in:
Vojta Jina 2012-03-04 00:53:02 -08:00
parent bbd3a3fd76
commit 4f797fe5f3

View file

@ -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!');
}
});