Skip to content

Commit a1f4500

Browse files
committed
fix(unit-test) Some missing callback parameters in tests, they fails on newer versions of mocha
1 parent a6ee62d commit a1f4500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/belongsTo.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ describe('loopback json api belongsTo relationships', function () {
318318
}
319319
)
320320

321-
it('should not include foreign key data in attributes', function () {
321+
it('should not include foreign key data in attributes', function (done) {
322322
request(app).get('/comments').end(function (err, res) {
323323
expect(err).to.equal(null)
324324
expect(res.body.data[0].attributes).to.not.have.keys('postId')
@@ -425,7 +425,7 @@ describe('loopback json api belongsTo relationships', function () {
425425
}
426426
)
427427

428-
it('should not include foreign key data in attributes', function () {
428+
it('should not include foreign key data in attributes', function (done) {
429429
request(app).get('/comments/1').end(function (err, res) {
430430
expect(err).to.equal(null)
431431
expect(res.body.data.attributes).to.not.have.keys('postId')

0 commit comments

Comments
 (0)