1
0
Fork 0

Add FEP-2677 tests

This commit is contained in:
Chocobozzz 2023-12-27 16:18:18 +01:00
parent 4f3fb47884
commit 4437ae0fd3
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 7 additions and 1 deletions

View file

@ -52,6 +52,8 @@ export abstract class RestTable <T = unknown> {
loadLazy (event: TableLazyLoadEvent) { loadLazy (event: TableLazyLoadEvent) {
debugLogger('Load lazy %o.', event) debugLogger('Load lazy %o.', event)
this.router.navigate([ '.' ], { relativeTo: this.route, queryParams: { start: event.first } })
this.sort = { this.sort = {
order: event.sortOrder, order: event.sortOrder,
field: event.sortField as string field: event.sortField as string

View file

@ -47,8 +47,12 @@ describe('Test misc endpoints', function () {
}) })
expect(res.body.links).to.be.an('array') 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[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 () { it('Should get dnt policy text', async function () {