diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/cli/reset-password.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'server/tests/cli/reset-password.ts')
-rw-r--r-- | server/tests/cli/reset-password.ts | 6 |
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 () { |