mock-mongoose-model
Version:
Mock mongoose model to use for unit testing.
40 lines (38 loc) • 590 B
JavaScript
module.exports = [
'add',
'aggregate',
'count',
'countDocuments',
'create',
'distinct',
'ensureIndexes',
'exec',
'exec',
'find',
'findById',
'findByIdAndRemove',
'findByIdAndUpdate',
'findOne',
'findOneAndRemove',
'findOneAndUpdate',
'geoNear',
'geoSearch',
'index',
'insertMany',
'lean',
'lean',
'limit',
'mapReduce',
'plugin',
'populate',
'remove',
'select',
'set',
'sort',
'toObject',
'toString',
'update',
'updateMany',
'where'
];
;