ActivityPub-federated video streaming platform using P2P directly in your web browser
Re-enable akismet test now 8.2 is released
Chocobozzz5a080d03ac31
diff --git a/packages/tests/src/external-plugins/akismet.ts b/packages/tests/src/external-plugins/akismet.tsindex 0966821774..b1a860b756 100644--- a/packages/tests/src/external-plugins/akismet.ts+++ b/packages/tests/src/external-plugins/akismet.ts@@ -1,6 +1,6 @@/* oxlint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */-import { HttpStatusCode } from '@peertube/peertube-models'+import { HttpStatusCode, UserRegistrationState } from '@peertube/peertube-models'import {cleanupTests,createMultipleServers,@@ -149,25 +149,24 @@ describe('Official plugin Akismet', function () {})})- // TODO: Enable when 8.2 is released- // it('Should detect a signup as SPAM and set it as approval', async function () {- // await servers[0].plugins.updateSettings({- // npmName: 'peertube-plugin-akismet',- // settings: {- // 'akismet-api-key': process.env.AKISMET_KEY,- // 'akismet-spam-marked-user-registration-strategy': 'mark-for-approval'- // }- // })-- // const { state } = await servers[0].registrations.register({- // username: 'user2',- // displayName: 'user 2',- // email: '[email protected]',- // expectedStatus: HttpStatusCode.OK_200- // })-- // expect(state.id).to.equal(UserRegistrationState.PENDING)- // })+ it('Should detect a signup as SPAM and set it as approval', async function () {+ await servers[0].plugins.updateSettings({+ npmName: 'peertube-plugin-akismet',+ settings: {+ 'akismet-api-key': process.env.AKISMET_KEY,+ 'akismet-spam-marked-user-registration-strategy': 'mark-for-approval'+ }+ })++ const { state } = await servers[0].registrations.register({+ username: 'user2',+ displayName: 'user 2',+ email: '[email protected]',+ expectedStatus: HttpStatusCode.OK_200+ })++ expect(state.id).to.equal(UserRegistrationState.PENDING)+ })})after(async function () {diff --git a/packages/tests/src/plugins/pnpm-store-location.ts b/packages/tests/src/plugins/pnpm-store-location.tsindex 5248e765f3..09bd11a7ab 100644--- a/packages/tests/src/plugins/pnpm-store-location.ts+++ b/packages/tests/src/plugins/pnpm-store-location.ts@@ -37,8 +37,8 @@ describe('Test plugin installation when pnpm store changes', function () {await server.run(undefined, {env: {- npm_config_store_dir: firstStoreDir, // PNPM <= 10- pnpm_config_store_dir: firstStoreDir // PNPM > 11+ npm_config_store_dir: secondStoreDir, // PNPM <= 10+ pnpm_config_store_dir: secondStoreDir // PNPM > 11}})