mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-07 08:57:54 +08:00
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:
@@ -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!');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user