diegohaz / rest

REST API generator with Node.js, Express and Mongoose
MIT License
1.79k stars 312 forks source link

fix: fix tests failed error #246

Closed cwang1221 closed 3 years ago

cwang1221 commented 3 years ago

Closes #240

Second parameter of mongoose.connect should be the opts, if no specific opts needed, pass undefined. Otherwise we will get following error: image

cwang1221 commented 3 years ago

@diegohaz Please help to reivew this pr, which will fix the test errors.

cwang1221 commented 3 years ago

Should fix this issue: #240

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling e02a6cc12e9dd93f32ba86dc209f0dd1e230ab53 on I322871:master into af80161cabf2e2c4500f336f33d2ed82ffb7e933 on diegohaz:master.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling e02a6cc12e9dd93f32ba86dc209f0dd1e230ab53 on I322871:master into af80161cabf2e2c4500f336f33d2ed82ffb7e933 on diegohaz:master.