fix: more surprising shit from AI written test file

This commit is contained in:
Julian Lam
2026-04-14 13:39:41 -04:00
parent 0cca729a69
commit 80589eb69c

View File

@@ -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()', () => {