fix: 修复类型检查报错并统一有效时间比显示
This commit is contained in:
@@ -113,6 +113,8 @@ describe('StartTask.vue', () => {
|
||||
expect(wrapper.vm.taskInfo.sessionState).toBe('PAUSED')
|
||||
expect(wrapper.vm.taskInfo.actualTime).toBe(10)
|
||||
expect(wrapper.vm.taskInfo.effectiveTime).toBe(20)
|
||||
// 后端返回 0.8,UI 统一按百分比展示
|
||||
expect(wrapper.vm.taskInfo.effectivenessRatio).toBe('80.0%')
|
||||
expect(wrapper.vm.timerRunning).toBe(false)
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user