Fix risky test
This commit is contained in:
parent
887fcbdc90
commit
6d4db993e4
|
|
@ -101,7 +101,7 @@ test('remaining time', async () => {
|
||||||
|
|
||||||
let wrapper = mount(Dashboard);
|
let wrapper = mount(Dashboard);
|
||||||
await wrapper.vm.$nextTick();
|
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');
|
expect(wrapper.find('button').text()).toContain('min');
|
||||||
|
|
||||||
wrapper = mount(Dashboard);
|
wrapper = mount(Dashboard);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user