Skip to content

Commit a1e8b6d

Browse files
chore: fix isError property placement with tests
1 parent e72adeb commit a1e8b6d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/tools/mongodb/delete/dropSearchIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export class DropSearchIndexTool extends MongoDBToolBase {
6969
{
7070
text: "This MongoDB cluster does not support Search Indexes. Make sure you are using an Atlas Cluster, either remotely in Atlas or using the Atlas Local image, or your cluster supports MongoDB Search.",
7171
type: "text",
72-
isError: true,
7372
},
7473
],
74+
isError: true,
7575
};
7676
}
7777
return super.handleError(error, args);

tests/integration/tools/mongodb/delete/dropSearchIndex.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describeWithMongoDB("drop-search-index tool - when connected to MongoDB without
5555
arguments: { database: "any", collection: "foo", indexName: "default" },
5656
});
5757
const content = getResponseContent(response.content);
58+
expect(response.isError).toBe(true);
5859
expect(content).toEqual(
5960
"This MongoDB cluster does not support Search Indexes. Make sure you are using an Atlas Cluster, either remotely in Atlas or using the Atlas Local image, or your cluster supports MongoDB Search."
6061
);

0 commit comments

Comments
 (0)