mirror of https://github.com/Chocobozzz/PeerTube
Add FEP-2677 tests
parent
4f3fb47884
commit
4437ae0fd3
|
@ -52,6 +52,8 @@ export abstract class RestTable <T = unknown> {
|
|||
loadLazy (event: TableLazyLoadEvent) {
|
||||
debugLogger('Load lazy %o.', event)
|
||||
|
||||
this.router.navigate([ '.' ], { relativeTo: this.route, queryParams: { start: event.first } })
|
||||
|
||||
this.sort = {
|
||||
order: event.sortOrder,
|
||||
field: event.sortField as string
|
||||
|
|
|
@ -47,8 +47,12 @@ describe('Test misc endpoints', function () {
|
|||
})
|
||||
|
||||
expect(res.body.links).to.be.an('array')
|
||||
expect(res.body.links).to.have.lengthOf(1)
|
||||
expect(res.body.links).to.have.lengthOf(2)
|
||||
|
||||
expect(res.body.links[0].rel).to.equal('http://nodeinfo.diaspora.software/ns/schema/2.0')
|
||||
|
||||
expect(res.body.links[1].rel).to.equal('https://www.w3.org/ns/activitystreams#Application')
|
||||
expect(res.body.links[1].href).to.equal(server.url + '/accounts/peertube')
|
||||
})
|
||||
|
||||
it('Should get dnt policy text', async function () {
|
||||
|
|
Loading…
Reference in New Issue