Fix risky test

This commit is contained in:
Pig Fang 2018-08-09 15:34:36 +08:00
parent 887fcbdc90
commit 6d4db993e4

View File

@ -101,7 +101,7 @@ test('remaining time', async () => {
let wrapper = mount(Dashboard);
await wrapper.vm.$nextTick();
expect(wrapper.find('button').text()).toContain('29');
expect(wrapper.find('button').text()).toMatch(/(29)|(30)/);
expect(wrapper.find('button').text()).toContain('min');
wrapper = mount(Dashboard);