webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
20 lines (19 loc) • 482 B
TypeScript
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
* @skipAwait
*/
//# sourceMappingURL=clear.d.ts.map