Skip to content

Node.js based forum software built for the modern web

fix: more surprising shit from AI written test file

Julian Lam80589eb69c3a
diff --git a/test/activitypub/blocklists.js b/test/activitypub/blocklists.js
index 84cb0debdb..cc06da8ec7 100644
--- a/test/activitypub/blocklists.js
+++ b/test/activitypub/blocklists.js
@@ -11,14 +11,16 @@ const install = require('../../src/install');
const activitypub = require('../../src/activitypub');
describe('ActivityPub blocklists', () => {
- before(async () => {
+ before(async function () {
meta.config.activitypubEnabled = 1;
meta.config.activitypubAllowLoopback = 1;
await install.giveWorldPrivileges();
+ this.getHandler = request.get;
});
- after(() => {
+ after(function () {
delete meta.config.activitypubEnabled;
+ request.get = this.getHandler;
});
describe('blocklists.list()', () => {