var cursor = db.movies.find({director: 'Irvin Kershner'});
console.log(cursor);
dbInterface
✓ can insert a movie
1) can query data by director
2) returns multiple results ordered by title
1 passing (265ms)
2 failing
1) dbInterface can query data by director:
TypeError: Cannot read property 'find' of undefined
at Object.exports.byDirector (interface.js:16:24)
at Context.<anonymous> (test.js:38:17)
2) dbInterface returns multiple results ordered by title:
TypeError: Cannot read property 'find' of undefined
at Object.exports.byDirector (interface.js:16:24)
at Context.<anonymous> (test.js:54:17)
Tests failed!
|