From 8712d5d503ed43ceaa83a9d2d2c4a0c1cb0972e8 Mon Sep 17 00:00:00 2001 From: Celso Martinho Date: Fri, 17 Feb 2023 18:25:19 +0000 Subject: [PATCH] Add tests --- backend/test/mastodon/statuses.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/test/mastodon/statuses.spec.ts b/backend/test/mastodon/statuses.spec.ts index f10ab64..9a53f25 100644 --- a/backend/test/mastodon/statuses.spec.ts +++ b/backend/test/mastodon/statuses.spec.ts @@ -536,7 +536,7 @@ describe('Mastodon APIs', () => { await insertLike(db, actor2, note) await insertLike(db, actor3, note) - const res = await statuses_id.handleRequestGet(db, note[mastodonIdSymbol]!, domain) + const res = await statuses_id.handleRequestGet(db, note[mastodonIdSymbol]!, domain, actor) assert.equal(res.status, 200) const data = await res.json() @@ -552,7 +552,7 @@ describe('Mastodon APIs', () => { const mediaAttachments = [await createImage(domain, db, actor, properties)] const note = await createPublicNote(domain, db, 'my first status', actor, mediaAttachments) - const res = await statuses_id.handleRequestGet(db, note[mastodonIdSymbol]!, domain) + const res = await statuses_id.handleRequestGet(db, note[mastodonIdSymbol]!, domain, actor) assert.equal(res.status, 200) const data = await res.json() @@ -591,7 +591,7 @@ describe('Mastodon APIs', () => { await insertReblog(db, actor2, note) await insertReblog(db, actor3, note) - const res = await statuses_id.handleRequestGet(db, note[mastodonIdSymbol]!, domain) + const res = await statuses_id.handleRequestGet(db, note[mastodonIdSymbol]!, domain, actor) assert.equal(res.status, 200) const data = await res.json()