Skip to content

Commit

Permalink
fixup: adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Dec 12, 2024
1 parent 7417d92 commit 4889c6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli-repl/src/mongosh-repl.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('MongoshNodeRepl', function () {

it('throws an error if internal methods are used too early', function () {
expect(() => mongoshRepl.runtimeState()).to.throw(
'Mongosh not initialized yet'
/mongosh not initialized yet\nCurrent trace/
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/cli-repl/src/mongosh-repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ class MongoshNodeRepl implements EvaluationListener {
// This error can be really hard to debug, so we always attach stack traces
// from both when .close() was called and when
throw new MongoshInternalError(
`mongosh not initialized yet\nCurrentTrace: ${
`mongosh not initialized yet\nCurrent trace: ${
new Error().stack
}\nClose trace: ${this.closeTrace}\n`
);
Expand Down

0 comments on commit 4889c6a

Please sign in to comment.