Node.js based forum software built for the modern web
test: add failing tests for actor/group assertion via wrong method, remote user to category migration
Julian Lamafc476435810
diff --git a/test/activitypub/actors.js b/test/activitypub/actors.jsindex 7cc8cb418d..02ab5ffce4 100644--- a/test/activitypub/actors.js+++ b/test/activitypub/actors.js@@ -60,9 +60,18 @@ describe('Actor asserton', () => {const url = await user.getUserField(actorUri, 'url');assert.strictEqual(url, actorUri);});++ it('should assert group actors by calling actors.assertGroup', async () => {+ assert(false);+ });++ it('should migrate a user to a category if on re-assertion it identifies as an as:Group', async () => {+ // This is to handle previous behaviour that saved all as:Group actors as NodeBB users.+ assert(false);+ });});- describe('edge case: loopback handles and uris', () => {+ describe('edge cases: loopback handles and uris', () => {let uid;const userslug = utils.generateUUID().slice(0, 8);before(async () => {@@ -90,6 +99,10 @@ describe('Actor asserton', () => {assert.strictEqual(userRemoteHashExists, false);});});++ describe('deletion', () => {+ // todo...+ });});describe.only('Group assertion', () => {@@ -122,6 +135,10 @@ describe.only('Group assertion', () => {assert(category);assert.strictEqual(category.cid, actorUri);});++ it('should assert non-group users by calling actors.assert', async () => {+ assert(false);+ });});describe('Controllers', () => {