aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/reset-password.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli/reset-password.ts')
-rw-r--r--server/tests/cli/reset-password.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/cli/reset-password.ts b/server/tests/cli/reset-password.ts
index 5e1e1c2af..e0d6f220a 100644
--- a/server/tests/cli/reset-password.ts
+++ b/server/tests/cli/reset-password.ts
@@ -9,16 +9,16 @@ describe('Test reset password scripts', function () {
9 server = await flushAndRunServer(1) 9 server = await flushAndRunServer(1)
10 await setAccessTokensToServers([ server ]) 10 await setAccessTokensToServers([ server ])
11 11
12 await server.usersCommand.create({ username: 'user_1', password: 'super password' }) 12 await server.users.create({ username: 'user_1', password: 'super password' })
13 }) 13 })
14 14
15 it('Should change the user password from CLI', async function () { 15 it('Should change the user password from CLI', async function () {
16 this.timeout(60000) 16 this.timeout(60000)
17 17
18 const env = server.cliCommand.getEnv() 18 const env = server.cli.getEnv()
19 await CLICommand.exec(`echo coucou | ${env} npm run reset-password -- -u user_1`) 19 await CLICommand.exec(`echo coucou | ${env} npm run reset-password -- -u user_1`)
20 20
21 await server.loginCommand.login({ user: { username: 'user_1', password: 'coucou' } }) 21 await server.login.login({ user: { username: 'user_1', password: 'coucou' } })
22 }) 22 })
23 23
24 after(async function () { 24 after(async function () {