X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fusers.ts;h=04c68d4ea91dce6a2140bba1668cf6334d1695e2;hb=77a5501f6413aff2f2a626b929dfda486fa9a3e6;hp=104d783bb369b298b13f3d5a492893369bfac9f7;hpb=5c98d3bf078852043cbdd582c01e3dc4f4b5b79f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/users.ts b/server/tests/api/users.ts index 104d783bb..04c68d4ea 100644 --- a/server/tests/api/users.ts +++ b/server/tests/api/users.ts @@ -319,9 +319,9 @@ describe('Test users', function () { }) it('Should be able to update another user', async function () { - await updateUser(server.url, userId, server.accessToken, 'updated2@example.com', 42 ) + await updateUser(server.url, userId, accessToken, 'updated2@example.com', 42) - const res = await getUserInformation(server.url, server.accessToken, userId) + const res = await getUserInformation(server.url, accessToken, userId) const user = res.body expect(user.username).to.equal('user_1')