Add FEP-2677 tests
This commit is contained in:
parent
4f3fb47884
commit
4437ae0fd3
2 changed files with 7 additions and 1 deletions
|
@ -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 a new issue