Files
talk/test/e2e/globals.js
T
Wyatt Johnson 80f219513b fixed e2e
2018-04-20 11:39:34 -06:00

33 lines
755 B
JavaScript

const mongoose = require('../../services/mongoose');
const { shutdown } = require('../../bin/util');
module.exports = {
before: async done => {
console.log('Dropping test database');
await mongoose.connection.dropDatabase();
done();
},
after: done => {
shutdown();
done();
},
waitForConditionTimeout: parseInt(process.env.WAIT_FOR_TIMEOUT) || 10000,
testData: {
admin: {
email: 'admin@test.com',
username: 'admin',
password: 'testtest',
},
user: {
email: 'user@test.com',
username: 'user',
password: 'testtest',
},
comment: {
body: 'This is a test comment',
},
organizationName: 'Coral',
organizationContactEmail: 'coral@coralproject.net',
},
};