Comparing version 8.3.1 to 8.3.2
@@ -101,33 +101,42 @@ 'use strict'; | ||
exports.afterEach = function(...args) { | ||
(currentContext.afterEach || currentContext.teardown).apply(this, args); | ||
return (currentContext.afterEach || currentContext.teardown).apply( | ||
this, | ||
args | ||
); | ||
}; | ||
exports.after = function(...args) { | ||
(currentContext.after || currentContext.suiteTeardown).apply(this, args); | ||
return (currentContext.after || currentContext.suiteTeardown).apply( | ||
this, | ||
args | ||
); | ||
}; | ||
exports.beforeEach = function(...args) { | ||
(currentContext.beforeEach || currentContext.setup).apply(this, args); | ||
return (currentContext.beforeEach || currentContext.setup).apply(this, args); | ||
}; | ||
exports.before = function(...args) { | ||
(currentContext.before || currentContext.suiteSetup).apply(this, args); | ||
return (currentContext.before || currentContext.suiteSetup).apply(this, args); | ||
}; | ||
exports.describe = function(...args) { | ||
(currentContext.describe || currentContext.suite).apply(this, args); | ||
return (currentContext.describe || currentContext.suite).apply(this, args); | ||
}; | ||
exports.describe.only = function(...args) { | ||
(currentContext.describe || currentContext.suite).only.apply(this, args); | ||
return (currentContext.describe || currentContext.suite).only.apply( | ||
this, | ||
args | ||
); | ||
}; | ||
exports.describe.skip = function(...args) { | ||
(currentContext.describe || currentContext.suite).skip.apply(this, args); | ||
return (currentContext.describe || currentContext.suite).skip.apply( | ||
this, | ||
args | ||
); | ||
}; | ||
exports.it = function(...args) { | ||
(currentContext.it || currentContext.test).apply(this, args); | ||
return (currentContext.it || currentContext.test).apply(this, args); | ||
}; | ||
exports.it.only = function(...args) { | ||
(currentContext.it || currentContext.test).only.apply(this, args); | ||
return (currentContext.it || currentContext.test).only.apply(this, args); | ||
}; | ||
exports.it.skip = function(...args) { | ||
( | ||
currentContext.xit || | ||
(currentContext.test && currentContext.test.skip) | ||
).apply(this, args); | ||
return (currentContext.it || currentContext.test).skip.apply(this, args); | ||
}; | ||
@@ -143,3 +152,3 @@ exports.xdescribe = exports.describe.skip; | ||
exports.run = function(...args) { | ||
currentContext.run.apply(this, args); | ||
return currentContext.run.apply(this, args); | ||
}; | ||
@@ -146,0 +155,0 @@ |
{ | ||
"name": "mocha", | ||
"version": "8.3.1", | ||
"version": "8.3.2", | ||
"description": "simple, flexible, fun test framework", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3072626
37769