Advice on "Advanced Node and Express - Clean Up Your Project with Modules"

I’ve just finished this challenge, after struggling with an issue. I just couldn’t pass the test, and the problem ended up being that I called my mongoClient import as follows:

const MongoClient = require('mongodb').MongoClient;

and the testing expected it to be:

const mongo       = require('mongodb').MongoClient;

That seemed to solve the problem. I just leave this here in case someone find it useful


it helped thanks :slight_smile:

Thanks - this is helpful

Thanks! It would be nice if the tests would be a little less inflexible.

Worked for me! Thanks!