X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Fexternal-auth.ts;h=57361be05a84763b70c71a84b4b03b05b4129fe5;hb=9a7fd9600bf513adffbf2127be7c3a8b4d31073f;hp=a85672782892a0936460436ac6ef3f41d464136a;hpb=5ca8c03e1dc172813d65397954ee785d462d83aa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/external-auth.ts b/server/tests/plugins/external-auth.ts index a85672782..57361be05 100644 --- a/server/tests/plugins/external-auth.ts +++ b/server/tests/plugins/external-auth.ts @@ -255,6 +255,16 @@ describe('Test external auth plugins', function () { expect(body.role).to.equal(UserRole.USER) }) + it('Should not update an external auth email', async function () { + await updateMyUser({ + url: server.url, + accessToken: cyanAccessToken, + email: 'toto@example.com', + currentPassword: 'toto', + statusCodeExpected: 400 + }) + }) + it('Should reject token of Kefka by the plugin hook', async function () { this.timeout(10000)