aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins/action-hooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/plugins/action-hooks.ts')
-rw-r--r--server/tests/plugins/action-hooks.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/plugins/action-hooks.ts b/server/tests/plugins/action-hooks.ts
index cf81e44b7..84f4e8501 100644
--- a/server/tests/plugins/action-hooks.ts
+++ b/server/tests/plugins/action-hooks.ts
@@ -14,7 +14,6 @@ import {
14 updateUser, 14 updateUser,
15 updateVideo, 15 updateVideo,
16 uploadVideo, 16 uploadVideo,
17 userLogin,
18 viewVideo 17 viewVideo
19} from '../../../shared/extra-utils' 18} from '../../../shared/extra-utils'
20import { 19import {
@@ -138,7 +137,7 @@ describe('Test plugin action hooks', function () {
138 }) 137 })
139 138
140 it('Should run action:api.user.oauth2-got-token', async function () { 139 it('Should run action:api.user.oauth2-got-token', async function () {
141 await userLogin(servers[0], { username: 'created_user', password: 'super_password' }) 140 await servers[0].loginCommand.getAccessToken('created_user', 'super_password')
142 141
143 await checkHook('action:api.user.oauth2-got-token') 142 await checkHook('action:api.user.oauth2-got-token')
144 }) 143 })