Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tester.createUser #6

Open
loppear opened this issue Feb 19, 2019 · 0 comments
Open

tester.createUser #6

loppear opened this issue Feb 19, 2019 · 0 comments

Comments

@loppear
Copy link
Contributor

loppear commented Feb 19, 2019

that directly puts the user in the test storage db (needs to be here rather than nxus-tester to have access to the right storage module.

tester.createUser = async function (email, password = 'test', admin=false) {
  let User = await storage.getModel('users-user')
  return User.findOrCreate({email}, {email, password, admin, enabled: true})
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant