Skip to content

Commit

Permalink
test: verify externally visible behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
alenakhineika committed Feb 17, 2025
1 parent d463226 commit 221088c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shell-api/src/cursor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ describe('Cursor', function () {

it('throws with the .toArray() suggestion', function () {
try {
shellApiCursor.toJSON();
JSON.stringify(shellApiCursor);
expect.fail('expected error');
} catch (e: any) {
expect(e).to.be.instanceOf(MongoshInvalidInputError);
Expand Down

0 comments on commit 221088c

Please sign in to comment.