UNPKG

metaapi.cloud-sdk

Version:

SDK for MetaApi, a professional cloud forex API which includes MetaTrader REST API and MetaTrader websocket API. Supports both MetaTrader 5 (MT5) and MetaTrader 4 (MT4). CopyFactory copy trading API included. (https://metaapi.cloud)

23 lines (22 loc) 821 B
import 'should'; /** * @typedef SpyCallInfo Information about spy call * @property {any} returnValue Call return value * @property {any[]} args Call arguments */ /** * Retrieves information about calls with matched args from a sinon spy * @param {Function} spy Sinon stub or spy * @param {Array} args Expected call arguments * @returns {SpyCallInfo[]} Calls information * @throws If failed to retrieve */ export declare function getCallsWithMatch(spy: any, ...args: any[]): any[]; /** * Retrieves information about calls with deep equal args from a sinon spy * @param {Function} spy Sinon stub or spy * @param {Array} args Expected call arguments * @returns {SpyCallInfo[]} Calls information * @throws If failed to retrieve */ export declare function getCallsWithExactly(spy: any, ...args: any[]): any[];