Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
jest
.spyOn(CozyClient.prototype, 'query')
.mockReturnValue({ data: [{ _id: 'group-id-1', label: 'My group' }] })
jest
.spyOn(BankAccount, 'getAll')
.mockReturnValue([
{ _id: 'c0ffeedeadbeef', label: 'My bank account', balance: 123 }
])
})