mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 09:31:17 +01:00
test: add back logs for failing test
This commit is contained in:
@@ -164,8 +164,9 @@ describe('FEPs', () => {
|
|||||||
});
|
});
|
||||||
pid = id;
|
pid = id;
|
||||||
({ activity } = await helpers.mocks.create(note));
|
({ activity } = await helpers.mocks.create(note));
|
||||||
|
console.log('before inbox create', activitypub._sent);
|
||||||
await activitypub.inbox.create({ body: activity });
|
await activitypub.inbox.create({ body: activity });
|
||||||
|
console.log('after inbox create', activitypub._sent);
|
||||||
const activities = Array.from(activitypub._sent);
|
const activities = Array.from(activitypub._sent);
|
||||||
|
|
||||||
const test1 = activities.some((activity) => {
|
const test1 = activities.some((activity) => {
|
||||||
@@ -174,14 +175,13 @@ describe('FEPs', () => {
|
|||||||
activity.object && activity.object.type === 'Create' &&
|
activity.object && activity.object.type === 'Create' &&
|
||||||
activity.object.object && activity.object.object.type === 'Note';
|
activity.object.object && activity.object.object.type === 'Note';
|
||||||
});
|
});
|
||||||
|
assert(test1);
|
||||||
const test2 = activities.some((activity) => {
|
const test2 = activities.some((activity) => {
|
||||||
[, activity] = activity;
|
[, activity] = activity;
|
||||||
return activity.type === 'Announce' &&
|
return activity.type === 'Announce' &&
|
||||||
activity.object && activity.object.type === 'Note';
|
activity.object && activity.object.type === 'Note';
|
||||||
});
|
});
|
||||||
|
assert(test2);
|
||||||
assert(test1 && test2);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should federate out an Announce(Create(Note)) on reply', async () => {
|
it('should federate out an Announce(Create(Note)) on reply', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user