Skip to content

Commit 4889c6a

Browse files
committed
fixup: adjust test
1 parent 7417d92 commit 4889c6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli-repl/src/mongosh-repl.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('MongoshNodeRepl', function () {
121121

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

packages/cli-repl/src/mongosh-repl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ class MongoshNodeRepl implements EvaluationListener {
10321032
// This error can be really hard to debug, so we always attach stack traces
10331033
// from both when .close() was called and when
10341034
throw new MongoshInternalError(
1035-
`mongosh not initialized yet\nCurrentTrace: ${
1035+
`mongosh not initialized yet\nCurrent trace: ${
10361036
new Error().stack
10371037
}\nClose trace: ${this.closeTrace}\n`
10381038
);

0 commit comments

Comments
 (0)