Exposing Link in the header instead of Links (#394)

- fix the small typo `Links` to `Link`
- update relevant tests
This commit is contained in:
Vahid Panjganj
2016-11-02 22:33:55 +00:00
committed by typicode
parent 0dbb5ba1a7
commit 2b93bf5113
2 changed files with 3 additions and 3 deletions

View File

@ -261,7 +261,7 @@ describe('Server', function () {
.get('/list?_page=2')
.expect('Content-Type', /json/)
.expect('x-total-count', db.list.length.toString())
.expect('Access-Control-Expose-Headers', 'X-Total-Count, Links')
.expect('Access-Control-Expose-Headers', 'X-Total-Count, Link')
.expect(db.list.slice(10, 20))
.expect(200, done)
})
@ -281,7 +281,7 @@ describe('Server', function () {
.expect('Content-Type', /json/)
.expect('x-total-count', db.list.length.toString())
.expect('link', link)
.expect('Access-Control-Expose-Headers', 'X-Total-Count, Links')
.expect('Access-Control-Expose-Headers', 'X-Total-Count, Link')
.expect(db.list.slice(1, 2))
.expect(200, done)
})