const mutada = require('@vivintsolar/mutada')
const path = require('path')

// helper to initialize a mutada instance and plugin a mutadaCouch instance
module.exports = (mutadaInstance, mutadaCouchInstance) => 
  mutadaInstance.init({ dir: path.join(process.cwd(), 'test', 'states') })
    .then(() => mutadaInstance.plugin(mutadaCouchInstance.plugin))
