Skip to content

Commit c68e4ad

Browse files
committed
chore: Make eslint happy
1 parent 0a1c789 commit c68e4ad

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/common/search/vectorSearchEmbeddings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class VectorSearchEmbeddings {
147147
return false;
148148
}
149149

150-
if (!fieldRef.every(this.isANumber)) {
150+
if (!fieldRef.every((e) => this.isANumber(e))) {
151151
return false;
152152
}
153153
}

tests/integration/tools/mongodb/create/insertMany.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
createSearchIndexAndWait,
32
createVectorSearchIndexAndWait,
43
describeWithMongoDB,
54
validateAutoConnectBehavior,
@@ -14,9 +13,8 @@ import {
1413
expectDefined,
1514
getDataFromUntrustedContent,
1615
} from "../../../helpers.js";
17-
import { beforeEach, expect, it } from "vitest";
18-
import { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
19-
import { afterEach } from "node:test";
16+
import { beforeEach, afterEach, expect, it } from "vitest";
17+
import type { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
2018
import { ObjectId } from "bson";
2119

2220
describeWithMongoDB("insertMany tool when search is disabled", (integration) => {

tests/integration/tools/mongodb/mongodbHelpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from "path";
22
import { fileURLToPath } from "url";
33
import fs from "fs/promises";
4-
import type { Document, SearchIndexDescription } from "mongodb";
4+
import type { Document } from "mongodb";
55
import { MongoClient, ObjectId } from "mongodb";
66
import type { IntegrationTest } from "../../helpers.js";
77
import {
@@ -17,7 +17,7 @@ import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from
1717
import { EJSON } from "bson";
1818
import { MongoDBClusterProcess } from "./mongodbClusterProcess.js";
1919
import type { MongoClusterConfiguration } from "./mongodbClusterProcess.js";
20-
import { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
20+
import type { NodeDriverServiceProvider } from "@mongosh/service-provider-node-driver";
2121

2222
const __dirname = path.dirname(fileURLToPath(import.meta.url));
2323

0 commit comments

Comments
 (0)