Skip to content

Node.js based forum software built for the modern web

test: add back logs for failing test

Barış Soner Uşaklı301b5386492b
diff --git a/test/activitypub/feps.js b/test/activitypub/feps.js
index 3e4b10f0b4..9f5d0c6a60 100644
--- a/test/activitypub/feps.js
+++ b/test/activitypub/feps.js
@@ -164,9 +164,9 @@ describe('FEPs', () => {
});
pid = id;
({ activity } = await helpers.mocks.create(note));
-
+ console.log('before inbox create', activitypub._sent);
await activitypub.inbox.create({ body: activity });
-
+ console.log('after inbox create', activitypub._sent);
const activities = Array.from(activitypub._sent);
const test1 = activities.some((activity) => {
@@ -175,13 +175,13 @@ describe('FEPs', () => {
activity.object && activity.object.type === 'Create' &&
activity.object.object && activity.object.object.type === 'Note';
});
-
+ assert(test1);
const test2 = activities.some((activity) => {
[, activity] = activity;
return activity.type === 'Announce' &&
activity.object && activity.object.type === 'Note';
});
- assert(test1 && test2);
+ assert(test2);
});
it('should federate out an Announce(Create(Note)) on reply', async () => {