8000 refactor(testabilityPatch): Change JSTD fail to more general throw · code7day/angular.js@4f797fe · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f797fe

Browse files
committed
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).
1 parent bbd3a3f commit 4f797fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testabilityPatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ afterEach(function() {
5454
});
5555
});
5656
if (count) {
57-
fail('Found jqCache references that were not deallocated!');
57+
throw new Error('Found jqCache references that were not deallocated!');
5858
}
5959
});
6060

0 commit comments

Comments
 (0)
0