This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

16
node_modules/fbjs/lib/__mocks__/ErrorUtils.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var ErrorUtils = jest.genMockFromModule("../ErrorUtils");
ErrorUtils.applyWithGuard.mockImplementation(function (callback, context, args) {
return callback.apply(context, args);
});
ErrorUtils.guard.mockImplementation(function (callback) {
return callback;
});
module.exports = ErrorUtils;

9
node_modules/fbjs/lib/__mocks__/base62.js generated vendored Normal file
View File

@ -0,0 +1,9 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = require.requireActual("../base62");

9
node_modules/fbjs/lib/__mocks__/crc32.js generated vendored Normal file
View File

@ -0,0 +1,9 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = require.requireActual("../crc32");

19
node_modules/fbjs/lib/__mocks__/fetch.js generated vendored Normal file
View File

@ -0,0 +1,19 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noflow
*/
'use strict';
var Deferred = require.requireActual("../Deferred");
var fetch = jest.fn(function (uri, options) {
var deferred = new Deferred();
fetch.mock.deferreds.push(deferred);
return deferred.getPromise();
});
fetch.mock.deferreds = [];
module.exports = fetch;

29
node_modules/fbjs/lib/__mocks__/fetchWithRetries.js generated vendored Normal file
View File

@ -0,0 +1,29 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noflow
*/
'use strict';
var Deferred = require.requireActual("../Deferred");
function fetchWithRetries() {
var deferred = new Deferred();
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
fetchWithRetries.mock.calls.push(args);
fetchWithRetries.mock.deferreds.push(deferred);
return deferred.getPromise();
}
fetchWithRetries.mock = {
calls: [],
deferreds: []
};
module.exports = fetchWithRetries;

10
node_modules/fbjs/lib/__mocks__/nullthrows.js generated vendored Normal file
View File

@ -0,0 +1,10 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
jest.unmock("../nullthrows");
module.exports = require("../nullthrows");