Skip to content

Commit b44a0d8

Browse files
committed
add Links header test
1 parent b070d56 commit b44a0d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/server/plural.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('Server', function () {
261261
.get('/list?_page=2')
262262
.expect('Content-Type', /json/)
263263
.expect('x-total-count', db.list.length.toString())
264-
.expect('Access-Control-Expose-Headers', 'X-Total-Count')
264+
.expect('Access-Control-Expose-Headers', 'X-Total-Count, Links')
265265
.expect(db.list.slice(10, 20))
266266
.expect(200, done)
267267
})
@@ -281,7 +281,7 @@ describe('Server', function () {
281281
.expect('Content-Type', /json/)
282282
.expect('x-total-count', db.list.length.toString())
283283
.expect('link', link)
284-
.expect('Access-Control-Expose-Headers', 'X-Total-Count')
284+
.expect('Access-Control-Expose-Headers', 'X-Total-Count, Links')
285285
.expect(db.list.slice(1, 2))
286286
.expect(200, done)
287287
})

0 commit comments

Comments
 (0)