Only show deprecation for catch exceptions if you tell Jasmine not to catch
- Fixes #1497
This commit is contained in:
@@ -198,8 +198,10 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
|
||||
// TODO: fix this naming, and here's where the value comes in
|
||||
this.catchExceptions = function(value) {
|
||||
this.deprecated('The catchExceptions option is deprecated and will be replaced with stopOnSpecFailure in Jasmine 3.0');
|
||||
catchExceptions = !!value;
|
||||
if (!catchExceptions) {
|
||||
this.deprecated('The catchExceptions option is deprecated and will be replaced with stopOnSpecFailure in Jasmine 3.0');
|
||||
}
|
||||
return catchExceptions;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user