refactor: Move sleep function to seprate file

This commit is contained in:
Blade Barringer
2016-02-10 08:21:36 -06:00
parent 0b336d8012
commit b6ed2f8c44
3 changed files with 10 additions and 8 deletions

View File

@@ -10,6 +10,8 @@ afterEach((done) => {
mongoose.connection.db.dropDatabase(done);
});
export { sleep } from './sleep';
export function generateUser (options = {}) {
return new User(options).toObject();
}