Updating NPM dependencies
This commit is contained in:
26
node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.js
generated
vendored
26
node_modules/jest-jasmine2/build/jasmine/ReportDispatcher.js
generated
vendored
@@ -50,13 +50,15 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/* eslint-disable local/prefer-spread-eventually, local/prefer-rest-params-eventually */
|
||||
class ReportDispatcher {
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error
|
||||
constructor(methods) {
|
||||
_defineProperty(this, 'addReporter', void 0);
|
||||
|
||||
@@ -81,8 +83,8 @@ class ReportDispatcher {
|
||||
for (let i = 0; i < dispatchedMethods.length; i++) {
|
||||
const method = dispatchedMethods[i];
|
||||
|
||||
this[method] = (function(m) {
|
||||
return function() {
|
||||
this[method] = (function (m) {
|
||||
return function () {
|
||||
dispatch(m, arguments);
|
||||
};
|
||||
})(method);
|
||||
@@ -91,15 +93,15 @@ class ReportDispatcher {
|
||||
let reporters = [];
|
||||
let fallbackReporter = null;
|
||||
|
||||
this.addReporter = function(reporter) {
|
||||
this.addReporter = function (reporter) {
|
||||
reporters.push(reporter);
|
||||
};
|
||||
|
||||
this.provideFallbackReporter = function(reporter) {
|
||||
this.provideFallbackReporter = function (reporter) {
|
||||
fallbackReporter = reporter;
|
||||
};
|
||||
|
||||
this.clearReporters = function() {
|
||||
this.clearReporters = function () {
|
||||
reporters = [];
|
||||
};
|
||||
|
||||
@@ -114,7 +116,7 @@ class ReportDispatcher {
|
||||
const reporter = reporters[i];
|
||||
|
||||
if (reporter[method]) {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
reporter[method].apply(reporter, args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user