docparse-create-user

create user document in database for use in docparse tests

Dependency tracking by David

Create Test Users

A module to directly register users in the database for use in tests

npm install --save-dev docparse-create-user
var createUser = require('docparse-create-user');
 
var userData = {
data = {
  username: 'username1',
  password: 'password1',
  email: 'test@example.com',
  remove: true
}
 
createUser(userData, function(errreply) {
  if (err) {
    console.log('error creating user', err)
    return;
  }
  console.log('created test user', reply.toObject());
});