From 55f9f7df73393e14bb93d23b61807e936e1e76ef Mon Sep 17 00:00:00 2001 From: lyf <2514544224@qq.com> Date: Wed, 15 Jul 2026 00:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=9A=E5=8A=A1=E5=8D=95?= =?UTF-8?q?=E5=85=83=E8=AE=B2=E8=A7=A3=E7=BB=9F=E8=AE=A1=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/explain/ExplainHallSelect.vue | 2 +- tests/unit/ExplainHallSelect.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)