Skip to content

Commit dd55dc8

Browse files
authored
Update form-timepicker.spec.js
1 parent b8c1a90 commit dd55dc8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/components/form-timepicker/form-timepicker.spec.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,25 @@ describe('form-timepicker', () => {
4343

4444
wrapper.destroy()
4545
})
46+
47+
it('control buttons work', async () => {
48+
const wrapper = mount(BFormTimepicker, {
49+
propsData: {
50+
showSeconds: true,
51+
name: 'foobar',
52+
value: '01:02:03',
53+
nowButton: true,
54+
resetButton: true,
55+
noCloseButton: false
56+
}
57+
})
58+
59+
expect(wrapper.isVueInstance()).toBe(true)
60+
await waitNT(wrapper.vm)
61+
await waitRAF()
62+
63+
// TBD
64+
65+
wrapper.destroy()
66+
})
4667
})

0 commit comments

Comments
 (0)