mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: adjust test runner detection in AP code
This commit is contained in:
@@ -338,7 +338,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) {
|
|||||||
const headers = await ActivityPub.sign(keyData, uri, payload);
|
const headers = await ActivityPub.sign(keyData, uri, payload);
|
||||||
|
|
||||||
ActivityPub.helpers.log(`[activitypub/send] ${uri}`);
|
ActivityPub.helpers.log(`[activitypub/send] ${uri}`);
|
||||||
if (process.env.CI === 'true') {
|
if (process.env.hasOwnProperty('CI')) {
|
||||||
ActivityPub._sent.set(payload.id, payload);
|
ActivityPub._sent.set(payload.id, payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ describe('ActivityPub integration', () => {
|
|||||||
delete meta.config.activitypubEnabled;
|
delete meta.config.activitypubEnabled;
|
||||||
});
|
});
|
||||||
|
|
||||||
describe.only('Outgoing AP logging for test runner', () => {
|
describe('Outgoing AP logging for test runner', () => {
|
||||||
it('should log an entry in ActivityPub._sent when .send is called', async () => {
|
it('should log an entry in ActivityPub._sent when .send is called', async () => {
|
||||||
const uuid = utils.generateUUID();
|
const uuid = utils.generateUUID();
|
||||||
const uid = await user.create({ username: uuid });
|
const uid = await user.create({ username: uuid });
|
||||||
|
|||||||
Reference in New Issue
Block a user