1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Cleanup tests imports

This commit is contained in:
Chocobozzz 2018-11-19 17:08:18 +01:00
parent 0b2f03d371
commit d175a6f7ab
No known key found for this signature in database
GPG key ID: 583A612D890159BE
27 changed files with 41 additions and 47 deletions

View file

@ -17,10 +17,8 @@ async function createUserAccountAndChannel (userToCreate: UserModel, validateUse
validate: validateUser
}
const [ userCreated, accountCreated ] = await Promise.all([
userToCreate.save(userOptions),
createLocalAccountWithoutKeys(userToCreate.username, userToCreate.id, null, t)
])
const userCreated = await userToCreate.save(userOptions)
const accountCreated = await createLocalAccountWithoutKeys(userCreated.username, userCreated.id, null, t)
userCreated.Account = accountCreated
let channelName = userCreated.username + '_channel'