Convert tests to typescript
This commit is contained in:
parent
b0f9f39ed7
commit
0e1dc3e7c6
73 changed files with 5487 additions and 6530 deletions
|
@ -6,14 +6,14 @@ program
|
|||
.option('-u, --user [user]', 'User')
|
||||
.parse(process.argv)
|
||||
|
||||
if (program.user === undefined) {
|
||||
if (program['user'] === undefined) {
|
||||
console.error('All parameters are mandatory.')
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
db.init(true)
|
||||
.then(() => {
|
||||
return db.User.loadByUsername(program.user)
|
||||
return db.User.loadByUsername(program['user'])
|
||||
})
|
||||
.then(user => {
|
||||
if (!user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue