@luminati-io/webdriverio8
Version:
Next-gen browser and mobile automation test framework for Node.js
20 lines (19 loc) • 782 B
JavaScript
export {};
/**
* Resets all information stored in the `mock.calls` array.
*
* <example>
:clear.js
it('should clear mock', async () => {
const mock = await browser.mock('https://google.com/')
await browser.url('https://google.com')
console.log(mock.calls.length) // returns 1
mock.clear()
console.log(mock.calls.length) // returns 0
})
* </example>
*
* @alias mock.clear
*/
// actual implementation is located in packages/webdriverio/src/utils/interception
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tbWFuZHMvbW9jay9jbGVhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7R0FnQkc7QUFDSCxrRkFBa0YifQ==