Skip to content

Commit 674866f

Browse files
gagikCopilot
andcommitted
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 09c5f4c commit 674866f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/arg-parser/src/arg-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class UnknownCliArgumentError extends Error {
240240
readonly argument: string;
241241
constructor(argument: string) {
242242
super(`Unknown argument: ${argument}`);
243-
this.name = 'UnknownParserArgumentError';
243+
this.name = 'UnknownCliArgumentError';
244244
this.argument = argument;
245245
}
246246
}

packages/cli-repl/src/arg-parser.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('parseMongoshCliArgs', function () {
1919
expect.fail('parsing unknown parameter did not throw');
2020
});
2121

22-
context('provides the usual functionality of arg-parser', function () {
22+
context('parses standard arguments correctly', function () {
2323
it('sets passed fields', function () {
2424
const argv = [...baseArgv, uri, '--tls', '--port', '1234'];
2525

packages/cli-repl/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import v8 from 'v8';
3333
import { TimingCategories } from '@mongosh/types';
3434
import './webpack-self-inspection';
3535
import { systemCA } from '@mongodb-js/devtools-proxy-support';
36-
import clr from './clr';
36+
3737

3838
// TS does not yet have type definitions for v8.startupSnapshot
3939
if ((v8 as any)?.startupSnapshot?.isBuildingSnapshot?.()) {

0 commit comments

Comments
 (0)