Skip to content

Commit 2de4564

Browse files
authored
Update form-spinbutton.spec.js
1 parent 6e5bc32 commit 2de4564

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ describe('form-spinbutton', () => {
234234
})
235235

236236
it('basic +/- buttons click', async () => {
237-
const wrapper = mount(BFormSpinbutton)
237+
const wrapper = mount(BFormSpinbutton, {
238+
attachToDocument: true
239+
})
238240
expect(wrapper.isVueInstance()).toBe(true)
239241
await waitNT(wrapper.vm)
240242
await waitRAF()
@@ -301,7 +303,9 @@ describe('form-spinbutton', () => {
301303
})
302304

303305
it('basic keyboard control works', async () => {
304-
const wrapper = mount(BFormSpinbutton)
306+
const wrapper = mount(BFormSpinbutton, {
307+
attachToDocument: true
308+
})
305309
expect(wrapper.isVueInstance()).toBe(true)
306310
await waitNT(wrapper.vm)
307311
await waitRAF()

0 commit comments

Comments
 (0)