diff --git a/README.md b/README.md index 428f1b16d..964fec9b0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ ## The MongoDB Shell This repository is a monorepo for all the various components in the MongoDB Shell across -all environments (REPL, Browser, Compass, etc). +all environments (REPL, Browser, Compass, etc). For more information on +currently available APIs and troubleshooting, go to [our wiki](https://github.com/mongodb-js/mongosh/wiki). ## CLI Usage ```shell diff --git a/packages/cli-repl/src/completer.spec.ts b/packages/cli-repl/src/completer.spec.ts index a5cdedecb..b77a648f4 100644 --- a/packages/cli-repl/src/completer.spec.ts +++ b/packages/cli-repl/src/completer.spec.ts @@ -32,8 +32,8 @@ describe('completer.completer', () => { it('returns all suggestions', () => { const i = 'db.'; - const dbComplete = Object.keys(shellSignatures.Database.attributes) - const adjusted = dbComplete.map(c => `${i}${c}`) + const dbComplete = Object.keys(shellSignatures.Database.attributes); + const adjusted = dbComplete.map(c => `${i}${c}`); expect(completer('4.4.0', i)).to.deep.equal([adjusted, i]); }); diff --git a/packages/shell-evaluator/src/shell-evaluator.spec.ts b/packages/shell-evaluator/src/shell-evaluator.spec.ts index cc9b64171..ecda93254 100644 --- a/packages/shell-evaluator/src/shell-evaluator.spec.ts +++ b/packages/shell-evaluator/src/shell-evaluator.spec.ts @@ -65,7 +65,7 @@ describe('ShellEvaluator', () => { }); it('reverts state if error thrown', async() => { - const originalEval = () => { throw new Error(); }; + const originalEval = (): any => { throw new Error(); }; const revertSpy = sinon.spy(); const saveSpy = sinon.spy(); shellEvaluator.revertState = revertSpy; @@ -79,7 +79,7 @@ describe('ShellEvaluator', () => { expect(saveSpy.calledOnce).to.be.true; }); it('does not revert state with no error', async() => { - const originalEval = () => { return 1; }; + const originalEval = (): any => { return 1; }; const revertSpy = sinon.spy(); const saveSpy = sinon.spy(); shellEvaluator.revertState = revertSpy;