mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 17:35:42 +08:00
32 lines
656 B
JavaScript
32 lines
656 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: 5000,
|
|
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',
|
|
}
|
|
};
|