diff --git a/seed/challenges/05-apis-and-microservices/mongodb-and-mongoose.json b/seed/challenges/05-apis-and-microservices/mongodb-and-mongoose.json index 7f53ba8644..fdb7699e88 100644 --- a/seed/challenges/05-apis-and-microservices/mongodb-and-mongoose.json +++ b/seed/challenges/05-apis-and-microservices/mongodb-and-mongoose.json @@ -85,6 +85,10 @@ { "text": "\"mongoose\" dependency should be in package.json", "testString": "getUserInput => $.get(getUserInput('url') + '/_api/file/package.json').then(data => { var packJson = JSON.parse(data); assert.property(packJson.dependencies, 'mongoose'); }, xhr => { throw new Error(xhr.responseText); })" + }, + { + "text": "\"mongoose\" should be connected to a database", + "testString": "getUserInput => $.get(getUserInput('url') + '/_api/is-mongoose-ok').then(data => {assert.isTrue(data.isMongooseOk, 'mongoose is not connected')}, xhr => { throw new Error(xhr.responseText); })" } ], "solutions": [],