提交一次全量代码
This commit is contained in:
@@ -32,9 +32,10 @@ describe('ReservationStatusBadge', () => {
|
||||
expect(wrapper.classes()).toContain('status-badge--info')
|
||||
})
|
||||
|
||||
it('falls back to the raw code for unknown status', () => {
|
||||
it('falls back to a localized unknown status label', () => {
|
||||
const wrapper = mountWithI18n('UNKNOWN_STATUS')
|
||||
|
||||
expect(wrapper.text()).toContain('UNKNOWN_STATUS')
|
||||
expect(wrapper.text()).toContain('未知状态')
|
||||
expect(wrapper.text()).not.toContain('UNKNOWN_STATUS')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user