Skip to content

Commit 75d9422

Browse files
committed
fix tests
1 parent 0f4feb0 commit 75d9422

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tests/accuracy/createIndex.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ describeAccuracyTests(
137137
},
138138
],
139139
{
140-
userConfig: { previewFeatures: "vectorSearch" },
140+
userConfig: { previewFeatures: "search" },
141141
clusterConfig: {
142142
search: true,
143143
},

tests/accuracy/dropIndex.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describeAccuracyTests(
127127
],
128128
{
129129
userConfig: {
130-
previewFeatures: "vectorSearch",
130+
previewFeatures: "search",
131131
},
132132
clusterConfig: { search: true },
133133
}

tests/accuracy/insertMany.embeddings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ describeAccuracyTests(
187187
},
188188
],
189189
{
190-
userConfig: { voyageApiKey: "valid-key", previewFeatures: "vectorSearch" },
190+
userConfig: { voyageApiKey: "valid-key", previewFeatures: "search" },
191191
clusterConfig: {
192192
search: true,
193193
},

tests/unit/toolBase.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ describe("ToolBase", () => {
121121

122122
describe("isFeatureEnabled", () => {
123123
it("should return false for any feature by default", () => {
124-
expect(testTool["isFeatureEnabled"]("vectorSearch")).to.equal(false);
124+
expect(testTool["isFeatureEnabled"]("search")).to.equal(false);
125125
expect(testTool["isFeatureEnabled"]("someOtherFeature" as PreviewFeature)).to.equal(false);
126126
});
127127

128128
it("should return true for enabled features", () => {
129-
mockConfig.previewFeatures = ["vectorSearch", "someOtherFeature" as PreviewFeature];
130-
expect(testTool["isFeatureEnabled"]("vectorSearch")).to.equal(true);
129+
mockConfig.previewFeatures = ["search", "someOtherFeature" as PreviewFeature];
130+
expect(testTool["isFeatureEnabled"]("search")).to.equal(true);
131131
expect(testTool["isFeatureEnabled"]("someOtherFeature" as PreviewFeature)).to.equal(true);
132132

133133
expect(testTool["isFeatureEnabled"]("anotherFeature" as PreviewFeature)).to.equal(false);

0 commit comments

Comments
 (0)