Skip to content

Commit 8f11bd5

Browse files
committed
feedback
1 parent 92e31a5 commit 8f11bd5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/mongodb-ts-autocomplete/scripts/extract-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function run() {
1919
// those use into the files we generate using api-extractor, but maybe
2020
// including it just once is not so bad.
2121
'/bson.ts': path.join(require.resolve('bson'), '..', '..', 'bson.d.ts'),
22-
// mql imports the mongodb driver. We could also use api-extrctor there to
22+
// mql imports the mongodb driver. We could also use api-extractor there to
2323
// bake the few mongodb types we use into the schema.
2424
'/mongodb.ts': path.join(
2525
require.resolve('mongodb'),

packages/mongodb-ts-autocomplete/src/autocompleter.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ describe('MongoDBAutocompleter', function () {
7373
});
7474

7575
it('deals with no connection', async function () {
76+
// The body of tests are all wrapped in loops so that we exercise the
77+
// caching logic in the autocompleter.
7678
for (let i = 0; i < 2; i++) {
7779
autocompleterContext.currentDatabaseAndConnection = () => {
7880
return undefined;

0 commit comments

Comments
 (0)