Only show deprecation for catch exceptions if you tell Jasmine not to catch
- Fixes #1497
This commit is contained in:
@@ -903,8 +903,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;
|
||||
};
|
||||
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
#
|
||||
module Jasmine
|
||||
module Core
|
||||
VERSION = "2.99.0"
|
||||
VERSION = "2.99.1"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "jasmine-core",
|
||||
"license": "MIT",
|
||||
"version": "2.99.0",
|
||||
"version": "2.99.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jasmine/jasmine.git"
|
||||
|
||||
@@ -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