test: add failing tests for actor/group assertion via wrong method, remote user to category migration

This commit is contained in:
Julian Lam
2025-03-18 10:16:40 -04:00
parent f483e883a7
commit afc4764358

View File

@@ -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', () => {