Skip to content

Commit 94367b8

Browse files
committed
Use a more realistic error
1 parent c9a3537 commit 94367b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/shell-api/src/shard.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,10 +2098,12 @@ describe('Shard', function () {
20982098
});
20992099

21002100
it('throws if serviceProvider.runCommandWithCheck rejects', async function () {
2101-
const expectedError = new Error();
2101+
const expectedError = new Error(
2102+
"Missing required parameter 'min' or 'max'"
2103+
);
21022104
serviceProvider.runCommandWithCheck.rejects(expectedError);
21032105
const caughtError = await shard
2104-
.moveRange('ns', 'destination', { key: 0 }, { key: 10 })
2106+
.moveRange('ns', 'destination')
21052107
.catch((e) => e);
21062108
expect(caughtError).to.equal(expectedError);
21072109
});

0 commit comments

Comments
 (0)