From d7f1860cbb44a453f0b7e9331d5d39dbe2b5317d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 18 Mar 2025 10:16:40 -0400 Subject: [PATCH] test: add failing tests for actor/group assertion via wrong method, remote user to category migration --- test/activitypub/actors.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/test/activitypub/actors.js b/test/activitypub/actors.js index 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', () => {