Updating NPM dependencies
This commit is contained in:
10
node_modules/jest-jasmine2/build/queueRunner.js
generated
vendored
10
node_modules/jest-jasmine2/build/queueRunner.js
generated
vendored
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', {
|
||||
});
|
||||
exports.default = queueRunner;
|
||||
|
||||
var _jestUtil = require('jest-util');
|
||||
|
||||
var _PCancelable = _interopRequireDefault(require('./PCancelable'));
|
||||
|
||||
var _pTimeout = _interopRequireDefault(require('./pTimeout'));
|
||||
@@ -24,7 +26,7 @@ function queueRunner(options) {
|
||||
|
||||
const mapper = ({fn, timeout, initError = new Error()}) => {
|
||||
let promise = new Promise(resolve => {
|
||||
const next = function next(...args) {
|
||||
const next = function (...args) {
|
||||
const err = args[0];
|
||||
|
||||
if (err) {
|
||||
@@ -34,7 +36,7 @@ function queueRunner(options) {
|
||||
resolve();
|
||||
};
|
||||
|
||||
next.fail = function(...args) {
|
||||
next.fail = function (...args) {
|
||||
options.fail.apply(null, args);
|
||||
resolve();
|
||||
};
|
||||
@@ -61,8 +63,8 @@ function queueRunner(options) {
|
||||
() => {
|
||||
initError.message =
|
||||
'Timeout - Async callback was not invoked within the ' +
|
||||
timeoutMs +
|
||||
'ms timeout specified by jest.setTimeout.';
|
||||
(0, _jestUtil.formatTime)(timeoutMs) +
|
||||
' timeout specified by jest.setTimeout.';
|
||||
initError.stack = initError.message + initError.stack;
|
||||
options.onException(initError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user