mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-07 14:38:23 -10:00
style(core): apply prettier to the new convergence-reminder tests
The Lint lane's whole-repo prettier check was short-circuited by the stale freshness gate, so these lines were never formatted. Formatting only. Co-authored-by: Qwen-Coder <[email protected]> Patrol-Run: qwen-pr-conflict/jmv2f2dk80w
This commit is contained in:
1 parent
fcb216bde8
commit
69f2e3130d
1 file changed
+9
-3
@@ -8446,7 +8446,9 @@ Other open files:
|
||||
expect(reminderIndex).toBeGreaterThanOrEqual(0);
|
||||
const responseIndex = reminderRequest.findIndex(
|
||||
(part) =>
|
||||
typeof part === 'object' && part !== null && 'functionResponse' in part,
|
||||
typeof part === 'object' &&
|
||||
part !== null &&
|
||||
'functionResponse' in part,
|
||||
);
|
||||
expect(reminderIndex).toBeGreaterThan(responseIndex);
|
||||
|
||||
@@ -8456,7 +8458,8 @@ Other open files:
|
||||
await run([fnResponse('read_file', { ok: true })], promptId, {
|
||||
type: SendMessageType.ToolResult,
|
||||
});
|
||||
const afterReminderRequest = mockTurnRunFn.mock.lastCall?.[1] as unknown[];
|
||||
const afterReminderRequest = mockTurnRunFn.mock
|
||||
.lastCall?.[1] as unknown[];
|
||||
expect(explorationReminders(afterReminderRequest)).toHaveLength(0);
|
||||
|
||||
// A new user interaction resets the phase: the count starts over, so
|
||||
@@ -8595,7 +8598,10 @@ Other open files:
|
||||
await run([{ text: 'explore' }], promptId);
|
||||
|
||||
mockTurnRunFn.mockReturnValueOnce(
|
||||
turnStream(toolCallRequest('call-2', 'read_file', { path: 'b' }), stopped()),
|
||||
turnStream(
|
||||
toolCallRequest('call-2', 'read_file', { path: 'b' }),
|
||||
stopped(),
|
||||
),
|
||||
);
|
||||
await run([fnResponse('read_file', { ok: true })], promptId, {
|
||||
type: SendMessageType.ToolResult,
|
||||
|
||||
Reference in new issue
Block a user