mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-11 03:37:57 +00:00
test(review): align review detail section copy assertions
This commit is contained in:
parent
0dea20f4be
commit
fb33d376fa
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ describe('ReviewSkillDetailSection', () => {
|
|||
const html = renderToStaticMarkup(<ReviewSkillDetailSection detail={createDetail()} />)
|
||||
|
||||
expect(html).toContain('1.2.0')
|
||||
expect(html).toContain('Expand full overview')
|
||||
expect(html).toContain('展开全文')
|
||||
})
|
||||
|
||||
it('renders the detail content inside a collapsed disclosure card by default', () => {
|
||||
|
|
@ -82,6 +82,6 @@ describe('ReviewSkillDetailSection', () => {
|
|||
it('renders inline error state without requiring detail data', () => {
|
||||
const html = renderToStaticMarkup(<ReviewSkillDetailSection hasError />)
|
||||
|
||||
expect(html).toContain('Failed to load the skill detail for this review.')
|
||||
expect(html).toContain('技能详情加载失败,请稍后重试。')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue