feat(CountDown): support SS and S format (#5154)

This commit is contained in:
neverland
2019-11-30 08:58:36 +08:00
committed by GitHub
parent d1a8adab20
commit 7f2e9b21c3
6 changed files with 70 additions and 6 deletions
+24
View File
@@ -141,6 +141,30 @@ test('complete format prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('milliseconds format SS', () => {
const wrapper = mount(CountDown, {
propsData: {
time: 1500,
autoStart: false,
format: 'ss-SS'
}
});
expect(wrapper).toMatchSnapshot();
});
test('milliseconds format S', () => {
const wrapper = mount(CountDown, {
propsData: {
time: 1500,
autoStart: false,
format: 'ss-S'
}
});
expect(wrapper).toMatchSnapshot();
});
test('incomplate format prop', () => {
const wrapper = mount(CountDown, {
propsData: {