Skip to content

Commit

Permalink
Add FEP-2677 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Dec 27, 2023
1 parent 4f3fb47 commit 4437ae0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/src/app/core/rest/rest-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion packages/tests/src/misc-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 4437ae0

Please sign in to comment.