How to use the pouchdb-browser.createIndexMock.mockReset function in pouchdb-browser

To help you get started, we’ve selected a few pouchdb-browser 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 ArkEcosystem / desktop-wallet / __tests__ / unit / store / db / interface.spec.js View on Github external
get () {
        return {
          requireContext: '@tests/unit/__fixtures__/models',
          separator: '~'
        }
      }
    })

    ignoreCreateIndex()

    model = new TestModel({ example: 'model-id' })
    doc = { example: model.example, modelType: model.modelType, _id: model.id }

    db = new DbInterface('test')

    createIndexMock.mockReset()
  })