Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should contain a others expenses virtual account', () => {
flag.mockReturnValue(true)
const virtualAccounts = buildVirtualAccounts(mockTransactions)
const othersExpenseAccount = virtualAccounts.find(
a => a._id === 'others_reimbursements'
)
expect(othersExpenseAccount).toBeDefined()
})