]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/plugins/action-hooks.ts
Reorganize imports
[github/Chocobozzz/PeerTube.git] / server / tests / plugins / action-hooks.ts
index b96de4e902a8e703479962635e59d7dec6acfe8e..4c1bc7d06382dc555f0ee9042c52d7df3d07d46c 100644 (file)
@@ -120,7 +120,7 @@ describe('Test plugin action hooks', function () {
     })
 
     it('Should run action:api.user.oauth2-got-token', async function () {
-      await servers[0].login.getAccessToken('created_user', 'super_password')
+      await servers[0].login.login({ user: { username: 'created_user' } })
 
       await checkHook('action:api.user.oauth2-got-token')
     })