Skip to content

Commit 221088c

Browse files
committed
test: verify externally visible behavior
1 parent d463226 commit 221088c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ describe('Cursor', function () {
804804

805805
it('throws with the .toArray() suggestion', function () {
806806
try {
807-
shellApiCursor.toJSON();
807+
JSON.stringify(shellApiCursor);
808808
expect.fail('expected error');
809809
} catch (e: any) {
810810
expect(e).to.be.instanceOf(MongoshInvalidInputError);

0 commit comments

Comments
 (0)