uncomment code

This commit is contained in:
Martin McKeaveney 2021-04-15 16:50:06 +01:00
parent 9cebd859f8
commit b94a964775
1 changed files with 7 additions and 7 deletions

View File

@ -15,13 +15,13 @@ let POUCH_DB_DEFAULTS = {
skip_setup: env.isProd(),
}
// if (env.isTest()) {
// PouchDB.plugin(require("pouchdb-adapter-memory"))
// POUCH_DB_DEFAULTS = {
// prefix: undefined,
// adapter: "memory",
// }
// }
if (env.isTest()) {
PouchDB.plugin(require("pouchdb-adapter-memory"))
POUCH_DB_DEFAULTS = {
prefix: undefined,
adapter: "memory",
}
}
const Pouch = PouchDB.defaults(POUCH_DB_DEFAULTS)