How to use the cozy-flags.mockReturnValue function in cozy-flags

To help you get started, we’ve selected a few cozy-flags examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cozy / cozy.github.io / en / cozy-banks / src / ducks / account / helpers.spec.js View on Github external
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()
  })

cozy-flags

Flag library used in Cozy

MIT
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis