Skip to content

Commit 70a3e2c

Browse files
add scaffolding tests
1 parent d26a588 commit 70a3e2c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

test/integration/crud/explain.test.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,44 @@ describe('CRUD API explain option', function () {
296296
};
297297
}
298298
});
299+
300+
describe.skip('explain with timeoutMS', function () {
301+
describe('when a cursor api is being explained', function () {
302+
describe('when timeoutMS is provided', function () {
303+
it('the explain command respects timeoutMS', async function () {});
304+
305+
it('the explain command has the calculated maxTimeMS value attached', async function () {});
306+
307+
it('the explained command does not have a maxTimeMS value attached', async function () {});
308+
});
309+
310+
describe('when timeoutMS and maxTimeMS are both provided', function () {
311+
it('an error is thrown indicating incompatibility of those options', async function () {});
312+
});
313+
});
314+
315+
describe('when a non-cursor api is being explained', function () {
316+
describe('when timeoutMS is provided', function () {
317+
it('the explain command respects timeoutMS', async function () {});
318+
319+
it('the explain command has the calculated maxTimeMS value attached', async function () {});
320+
321+
it('the explained command does not have a maxTimeMS value attached', async function () {});
322+
});
323+
324+
describe('when timeoutMS and maxTimeMS are both provided', function () {
325+
it('an error is thrown indicating incompatibility of those options', async function () {});
326+
});
327+
});
328+
329+
describe('when find({}, { explain: ...}) is used with timeoutMS', function () {
330+
it('an error is thrown indicating that explain is not supported with timeoutMS for this API', async function () {});
331+
});
332+
333+
describe('when aggregate({}, { explain: ...}) is used with timeoutMS', function () {
334+
it('an error is thrown indicating that explain is not supported with timeoutMS for this API', async function () {});
335+
});
336+
});
299337
});
300338

301339
function explainValueToExpectation(explainValue: boolean | string) {

0 commit comments

Comments
 (0)