Skip to content

Commit

Permalink
add scaffolding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Oct 8, 2024
1 parent d26a588 commit 70a3e2c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions test/integration/crud/explain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,44 @@ describe('CRUD API explain option', function () {
};
}
});

describe.skip('explain with timeoutMS', function () {
describe('when a cursor api is being explained', function () {
describe('when timeoutMS is provided', function () {
it('the explain command respects timeoutMS', async function () {});

it('the explain command has the calculated maxTimeMS value attached', async function () {});

it('the explained command does not have a maxTimeMS value attached', async function () {});
});

describe('when timeoutMS and maxTimeMS are both provided', function () {
it('an error is thrown indicating incompatibility of those options', async function () {});
});
});

describe('when a non-cursor api is being explained', function () {
describe('when timeoutMS is provided', function () {
it('the explain command respects timeoutMS', async function () {});

it('the explain command has the calculated maxTimeMS value attached', async function () {});

it('the explained command does not have a maxTimeMS value attached', async function () {});
});

describe('when timeoutMS and maxTimeMS are both provided', function () {
it('an error is thrown indicating incompatibility of those options', async function () {});
});
});

describe('when find({}, { explain: ...}) is used with timeoutMS', function () {
it('an error is thrown indicating that explain is not supported with timeoutMS for this API', async function () {});
});

describe('when aggregate({}, { explain: ...}) is used with timeoutMS', function () {
it('an error is thrown indicating that explain is not supported with timeoutMS for this API', async function () {});
});
});
});

function explainValueToExpectation(explainValue: boolean | string) {
Expand Down

0 comments on commit 70a3e2c

Please sign in to comment.