Skip to content

Commit 165b647

Browse files
committed
Upgrade dependencies and fix tests
1 parent aef0287 commit 165b647

File tree

4 files changed

+4976
-7040
lines changed

4 files changed

+4976
-7040
lines changed

__tests__/server/plural-with-custom-foreign-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('Server with custom foreign key', () => {
100100
.post('/posts/1/comments')
101101
.send({ body: 'foo' })
102102
.expect('Content-Type', /json/)
103-
.expect({ id: 4, post_id: 1, body: 'foo' })
103+
.expect({ id: 4, post_id: '1', body: 'foo' })
104104
.expect(201))
105105
})
106106

__tests__/server/plural.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ describe('Server', () => {
541541
test('should respond with json, create a resource and generate string id', async () => {
542542
await request(server)
543543
.post('/refs')
544-
.send({ url: 'http://foo.com', postId: '1' })
544+
.send({ url: 'http://foo.com', postId: 1 })
545545
.expect('Content-Type', /json/)
546546
.expect(201)
547547
assert.equal(db.refs.length, 2)
@@ -554,7 +554,7 @@ describe('Server', () => {
554554
.post('/posts/1/comments')
555555
.send({ body: 'foo' })
556556
.expect('Content-Type', /json/)
557-
.expect({ id: 6, postId: 1, body: 'foo' })
557+
.expect({ id: 6, postId: '1', body: 'foo' })
558558
.expect(201))
559559
})
560560

0 commit comments

Comments
 (0)