Skip to content

Node.js based forum software built for the modern web

test: adjust test runner detection in AP code

Julian Lam7ceb6d69ae9b
diff --git a/src/activitypub/index.js b/src/activitypub/index.js
index 3dd5aad134..49fa028eff 100644
--- a/src/activitypub/index.js
+++ b/src/activitypub/index.js
@@ -338,7 +338,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) {
const headers = await ActivityPub.sign(keyData, uri, payload);
ActivityPub.helpers.log(`[activitypub/send] ${uri}`);
- if (process.env.CI === 'true') {
+ if (process.env.hasOwnProperty('CI')) {
ActivityPub._sent.set(payload.id, payload);
}
diff --git a/test/activitypub.js b/test/activitypub.js
index 16642afa2c..4993ef6111 100644
--- a/test/activitypub.js
+++ b/test/activitypub.js
@@ -29,7 +29,7 @@ describe('ActivityPub integration', () => {
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 () => {
const uuid = utils.generateUUID();
const uid = await user.create({ username: uuid });