clear
Resets all information stored in the mock.calls
array.
This is a beta feature. Please give us feedback and file an issue if certain scenarios don't work as expected!
Usage
mock.clear()
Example
it('should clear mock', () => {
const mock = browser.mock('https://google.com/')
browser.url('https://google.com')
console.log(mock.calls.length) // returns 1
mock.clear()
console.log(mock.calls.length) // returns 0
})