Moved contents of seasoned_api up to root folder
This commit is contained in:
11
tests/helpers/createUser.js
Normal file
11
tests/helpers/createUser.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const User = require('src/user/user');
|
||||
const UserSecurity = require('src/user/userSecurity');
|
||||
|
||||
function createUser(username, password) {
|
||||
const userSecurity = new UserSecurity();
|
||||
const user = new User(username)
|
||||
|
||||
return Promise.resolve(userSecurity.createNewUser(user, password))
|
||||
}
|
||||
|
||||
module.exports = createUser;
|
||||
Reference in New Issue
Block a user