From 2dbcc3741b8b8ec20651e53965063eac1feb4ece Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Mar 2023 15:45:31 +0100 Subject: Fix tests --- server/tests/plugins/filter-hooks.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/tests/plugins') diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index 3577fc022..7e0be4d4e 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts @@ -853,7 +853,9 @@ describe('Test plugin filter hooks', function () { const { body } = await makeActivityPubGetRequest(servers[0].url, '/w/' + videoUUID) expect(body.type).to.equal('Video') - expect(body['@context'].some(c => c === 'https://example.com/new-context')).to.be.true + expect(body['@context'].some(c => { + return typeof c === 'object' && c.recordedAt === 'https://schema.org/recordedAt' + })).to.be.true }) it('Should run filter:activity-pub.video.json-ld.build.result', async function () { -- cgit v1.2.3