✅ test: 覆盖弹窗生命周期、存储合并与插件页的时长选项
This commit is contained in:
@@ -15,16 +15,17 @@ function candidate(overrides) {
|
||||
return { kind: 'completion', sessionId: 'session-1', title: '标题', detail: '', pendingKind: '', ...overrides }
|
||||
}
|
||||
|
||||
test('a finished conversation names the trigger as the title and the conversation as the body', () => {
|
||||
test('a finished conversation says what happened in the heading, and the conversation in the description', () => {
|
||||
// The heading already carries "finished", so the description is the title alone.
|
||||
assert.deepEqual(copyFor(candidate()), {
|
||||
kind: 'completion',
|
||||
title: '会话已完成',
|
||||
body: '标题 已完成这一轮回答',
|
||||
body: '标题',
|
||||
})
|
||||
})
|
||||
|
||||
test('an empty title falls back to the untitled copy', () => {
|
||||
assert.equal(copyFor(candidate({ title: '' })).body, '未命名会话 已完成这一轮回答')
|
||||
assert.equal(copyFor(candidate({ title: '' })).body, '未命名会话')
|
||||
})
|
||||
|
||||
test('an approval names the waiting tool when the client publishes one', () => {
|
||||
|
||||
Reference in New Issue
Block a user