mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
test: group actor assertion tests
This commit is contained in:
@@ -8,7 +8,7 @@ const Helpers = module.exports;
|
||||
|
||||
Helpers.mocks = {};
|
||||
|
||||
Helpers.mocks.actor = () => {
|
||||
Helpers.mocks.person = () => {
|
||||
const baseUrl = 'https://example.org';
|
||||
const uuid = utils.generateUUID();
|
||||
const id = `${baseUrl}/${uuid}`;
|
||||
@@ -37,6 +37,13 @@ Helpers.mocks.actor = () => {
|
||||
return { id, actor };
|
||||
};
|
||||
|
||||
Helpers.mocks.group = () => {
|
||||
const { id, actor } = Helpers.mocks.person();
|
||||
actor.type = 'Group';
|
||||
|
||||
return { id, actor };
|
||||
};
|
||||
|
||||
Helpers.mocks.note = (override = {}) => {
|
||||
const baseUrl = 'https://example.org';
|
||||
const uuid = utils.generateUUID();
|
||||
|
||||
Reference in New Issue
Block a user