Skip to content

Commit a07252b

Browse files
authored
Merge pull request #247 from Tronix117/hotfix/mocha-unit-test
fix(unit-test) Some missing callback parameters in tests
2 parents c679ea1 + a1f4500 commit a07252b

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
@@ -320,7 +320,7 @@ describe('loopback json api belongsTo relationships', function () {
320320
}
321321
)
322322

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

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

0 commit comments

Comments
 (0)