wip: fix test error
This commit is contained in:
parent
0522520fdd
commit
eb4a617713
|
@ -386,21 +386,20 @@ describe('ActivityPub', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Update', async () => {
|
describe('Update', () => {
|
||||||
const actor = createRandomActor();
|
|
||||||
|
|
||||||
const post = {
|
|
||||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
|
||||||
id: `${host}/users/${secureRndstr(8)}`,
|
|
||||||
type: 'Note',
|
|
||||||
attributedTo: actor.id,
|
|
||||||
to: 'https://www.w3.org/ns/activitystreams#Public',
|
|
||||||
content: 'あ',
|
|
||||||
};
|
|
||||||
|
|
||||||
const note = await noteService.createNote(post.id, resolver, true);
|
|
||||||
|
|
||||||
test('Update note', async () => {
|
test('Update note', async () => {
|
||||||
|
const actor = createRandomActor();
|
||||||
|
|
||||||
|
const post = {
|
||||||
|
'@context': 'https://www.w3.org/ns/activitystreams',
|
||||||
|
id: `${host}/users/${secureRndstr(8)}`,
|
||||||
|
type: 'Note',
|
||||||
|
attributedTo: actor.id,
|
||||||
|
to: 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
|
content: 'あ',
|
||||||
|
};
|
||||||
|
|
||||||
|
const note = await noteService.createNote(post.id, resolver, true);
|
||||||
rendererService.renderNoteUpdate(await rendererService.renderNote(note!, false, true), note!, actor);
|
rendererService.renderNoteUpdate(await rendererService.renderNote(note!, false, true), note!, actor);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue