Skip to content

Commit ec727eb

Browse files
test: Fix AI integration tests (#307)
1 parent f8ceac0 commit ec727eb

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

.codegen.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "ab2fc63", "specHash": "9919482", "version": "1.3.0" }
1+
{ "engineHash": "98d8b60", "specHash": "9919482", "version": "1.3.0" }

src/test/ai.generated.test.ts

-9
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ test('testGettingAIAskAgentConfig', async function testGettingAIAskAgentConfig()
153153
if (!!(aiAskConfig.basicText!.promptTemplate! == '')) {
154154
throw new Error('Assertion failed');
155155
}
156-
if (!!(aiAskConfig.basicText!.systemMessage! == '')) {
157-
throw new Error('Assertion failed');
158-
}
159156
if (!(aiAskConfig.basicText!.numTokensForCompletion! > -1)) {
160157
throw new Error('Assertion failed');
161158
}
@@ -180,9 +177,6 @@ test('testGettingAIAskAgentConfig', async function testGettingAIAskAgentConfig()
180177
if (!!(aiAskConfig.longText!.promptTemplate! == '')) {
181178
throw new Error('Assertion failed');
182179
}
183-
if (!!(aiAskConfig.longText!.systemMessage! == '')) {
184-
throw new Error('Assertion failed');
185-
}
186180
if (!(aiAskConfig.longText!.numTokensForCompletion! > -1)) {
187181
throw new Error('Assertion failed');
188182
}
@@ -232,9 +226,6 @@ test('testGettingAITextGenAgentConfig', async function testGettingAITextGenAgent
232226
if (!!(aiTextGenConfig.basicGen!.promptTemplate! == '')) {
233227
throw new Error('Assertion failed');
234228
}
235-
if (!!(aiTextGenConfig.basicGen!.systemMessage! == '')) {
236-
throw new Error('Assertion failed');
237-
}
238229
if (!(aiTextGenConfig.basicGen!.numTokensForCompletion! > -1)) {
239230
throw new Error('Assertion failed');
240231
}

0 commit comments

Comments
 (0)