mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-19 02:50:53 +01:00
tests: fix... tests
This commit is contained in:
@@ -517,9 +517,9 @@ describe('Crossposting (& related logic)', () => {
|
|||||||
|
|
||||||
const actual = Array.from(activitypub._sent).pop()[1];
|
const actual = Array.from(activitypub._sent).pop()[1];
|
||||||
assert.deepStrictEqual({
|
assert.deepStrictEqual({
|
||||||
type: actual.type,
|
type: actual.payload.type,
|
||||||
actor: actual.actor,
|
actor: actual.payload.actor,
|
||||||
object: actual.object,
|
object: actual.payload.object,
|
||||||
}, {
|
}, {
|
||||||
type: 'Announce',
|
type: 'Announce',
|
||||||
actor: `${nconf.get('url')}/category/${cid1}`,
|
actor: `${nconf.get('url')}/category/${cid1}`,
|
||||||
@@ -539,9 +539,9 @@ describe('Crossposting (& related logic)', () => {
|
|||||||
|
|
||||||
const actual = Array.from(activitypub._sent).pop()[1];
|
const actual = Array.from(activitypub._sent).pop()[1];
|
||||||
assert.deepStrictEqual({
|
assert.deepStrictEqual({
|
||||||
type: actual.type,
|
type: actual.payload.type,
|
||||||
actor: actual.actor,
|
actor: actual.payload.actor,
|
||||||
object: actual.object,
|
object: actual.payload.object,
|
||||||
}, {
|
}, {
|
||||||
type: 'Announce',
|
type: 'Announce',
|
||||||
actor: `${nconf.get('url')}/category/${cid1}`,
|
actor: `${nconf.get('url')}/category/${cid1}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user