Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix tests build

Chocobozzzc0365a25c30d
diff --git a/packages/tests/src/plugins/filter-hooks.ts b/packages/tests/src/plugins/filter-hooks.ts
index 211f70f6f8..6c8fc6cf9f 100644
--- a/packages/tests/src/plugins/filter-hooks.ts
+++ b/packages/tests/src/plugins/filter-hooks.ts
@@ -525,12 +525,12 @@ describe('Test plugin filter hooks', function () {
})
it('Should not allow a signup', async function () {
- const res = await servers[0].registrations.register({
+ const body = await servers[0].registrations.register({
username: 'jma 1',
expectedStatus: HttpStatusCode.FORBIDDEN_403
})
- expect((res.body as PeerTubeProblemDocument).detail).to.equal('No jma 1')
+ expect((body as unknown as PeerTubeProblemDocument).detail).to.equal('No jma 1')
})
})