X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fmisc-endpoints.ts;h=5f82719dac6e18aee41714ab0fe4f67b3c156f74;hb=f5305c04aae14467d6f957b713c5a902275cbb89;hp=b53803ee1d64e235f036faf97aa8cdf0be4ba0c0;hpb=2feebf3e6afaad9ab80976d1557d3a7bcf94de03;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/misc-endpoints.ts b/server/tests/misc-endpoints.ts index b53803ee1..5f82719da 100644 --- a/server/tests/misc-endpoints.ts +++ b/server/tests/misc-endpoints.ts @@ -12,7 +12,7 @@ import { ServerInfo, setAccessTokensToServers, uploadVideo -} from './utils' +} from '../../shared/utils' import { VideoPrivacy } from '../../shared/models/videos' const expect = chai.expect @@ -72,6 +72,16 @@ describe('Test misc endpoints', function () { expect(res.body.tracking).to.equal('N') }) + + it('Should get change-password location', async function () { + const res = await makeGetRequest({ + url: server.url, + path: '/.well-known/change-password', + statusCodeExpected: 302 + }) + + expect(res.header.location).to.equal('/my-account/settings') + }) }) describe('Test classic static endpoints', function () {