diff --git a/src/components/explain/ExplainHallSelect.vue b/src/components/explain/ExplainHallSelect.vue index 89d393d..890a1c0 100644 --- a/src/components/explain/ExplainHallSelect.vue +++ b/src/components/explain/ExplainHallSelect.vue @@ -92,7 +92,7 @@ {{ unit.name }} - {{ unit.guideStopCount }} 个讲解点 + {{ unit.guideStopCount }} 个讲解 diff --git a/tests/unit/ExplainHallSelect.spec.ts b/tests/unit/ExplainHallSelect.spec.ts index 3f324e8..433ae56 100644 --- a/tests/unit/ExplainHallSelect.spec.ts +++ b/tests/unit/ExplainHallSelect.spec.ts @@ -9,7 +9,7 @@ vi.mock('@/utils/hostEnvironment', () => ({ })) describe('讲解展厅选择列表', () => { - it('业务单元卡片不显示业务单元标签,并保留讲解点数量和点击事件', async () => { + it('业务单元卡片不显示业务单元标签,并保留讲解数量和点击事件', async () => { const wrapper = mount(ExplainHallSelect, { props: { stage: 'unit', @@ -34,8 +34,8 @@ describe('讲解展厅选择列表', () => { expect(cards).toHaveLength(2) expect(wrapper.text()).toContain('生命演化') expect(wrapper.text()).toContain('恐龙世界') - expect(wrapper.text()).toContain('6 个讲解点') - expect(wrapper.text()).toContain('4 个讲解点') + expect(wrapper.text()).toContain('6 个讲解') + expect(wrapper.text()).toContain('4 个讲解') expect(cards.map((card) => card.text()).join('')).not.toContain('业务单元') expect(cards[0]?.find('.floor-badge').exists()).toBe(false)