mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: category follow schema test
This commit is contained in:
@@ -23,6 +23,7 @@ const posts = require('../src/posts');
|
||||
const plugins = require('../src/plugins');
|
||||
const flags = require('../src/flags');
|
||||
const messaging = require('../src/messaging');
|
||||
const activitypub = require('../src/activitypub');
|
||||
const utils = require('../src/utils');
|
||||
const api = require('../src/api');
|
||||
|
||||
@@ -317,6 +318,13 @@ describe('API', async () => {
|
||||
// Retrieve CSRF token using cookie, to test Write API
|
||||
csrfToken = await helpers.getCsrfToken(jar);
|
||||
|
||||
// Pre-seed ActivityPub cache so contrived actor assertions pass
|
||||
activitypub._cache.set(`0;https://example.org/foobar`, {
|
||||
id: 'https://example.org/foobar',
|
||||
name: 'foobar',
|
||||
publicKey: 'secretcat',
|
||||
});
|
||||
|
||||
setup = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user