diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-10 15:45:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-10 15:45:31 +0100 |
commit | 2dbcc3741b8b8ec20651e53965063eac1feb4ece (patch) | |
tree | 6805b4d69a6d08eb3684d7c05ecd9195cd47337e /server/tests/plugins | |
parent | 04852e14b4290b51e929d0f3019f9663ccf3ac24 (diff) | |
download | PeerTube-2dbcc3741b8b8ec20651e53965063eac1feb4ece.tar.gz PeerTube-2dbcc3741b8b8ec20651e53965063eac1feb4ece.tar.zst PeerTube-2dbcc3741b8b8ec20651e53965063eac1feb4ece.zip |
Fix tests
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/filter-hooks.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 () { | |||
853 | const { body } = await makeActivityPubGetRequest(servers[0].url, '/w/' + videoUUID) | 853 | const { body } = await makeActivityPubGetRequest(servers[0].url, '/w/' + videoUUID) |
854 | expect(body.type).to.equal('Video') | 854 | expect(body.type).to.equal('Video') |
855 | 855 | ||
856 | expect(body['@context'].some(c => c === 'https://example.com/new-context')).to.be.true | 856 | expect(body['@context'].some(c => { |
857 | return typeof c === 'object' && c.recordedAt === 'https://schema.org/recordedAt' | ||
858 | })).to.be.true | ||
857 | }) | 859 | }) |
858 | 860 | ||
859 | it('Should run filter:activity-pub.video.json-ld.build.result', async function () { | 861 | it('Should run filter:activity-pub.video.json-ld.build.result', async function () { |