test: Reset db before running e2e tests

This commit is contained in:
Blade Barringer
2016-03-13 21:56:12 -05:00
parent 88ef920a2f
commit 3ffb84d890

View File

@@ -1,4 +1,9 @@
import fs from 'fs';
import { resetHabiticaDB } from '../helpers/api-integration/mongo';
before(async () => {
await resetHabiticaDB();
})
// based on https://github.com/angular/protractor/issues/114#issuecomment-29046939
afterEach(async function () {