()
| 227 | }); |
| 228 | |
| 229 | const makeCursor = () => { |
| 230 | // Possible methods on the the cursor instance |
| 231 | return collection |
| 232 | .find({}) |
| 233 | .filter({ a: 1 }) |
| 234 | .addCursorFlag('noCursorTimeout', true) |
| 235 | .addQueryModifier('$comment', 'some comment') |
| 236 | .batchSize(1) |
| 237 | .comment('some comment 2') |
| 238 | .limit(2) |
| 239 | .maxTimeMS(50) |
| 240 | .project({ a: 1 }) |
| 241 | .skip(0) |
| 242 | .sort({ a: 1 }); |
| 243 | }; |
| 244 | |
| 245 | describe('#count()', () => { |
| 246 | it('returns the number of documents', async () => { |
no test coverage detected