mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
test(carousel): flatten promise code
This commit is contained in:
parent
68a804b426
commit
1db7127f70
@ -148,13 +148,13 @@ describe('n-carousel', () => {
|
||||
expect(slidesDOMArray[2].attributes('aria-hidden')).toBe('false')
|
||||
|
||||
await sleep(1000)
|
||||
await nextTick(() => {
|
||||
void wrapper
|
||||
.find('.n-carousel__arrow--left')
|
||||
.trigger('click')
|
||||
.then(() => {
|
||||
expect(slidesDOMArray[1].attributes('aria-hidden')).toBe('false')
|
||||
})
|
||||
})
|
||||
await nextTick()
|
||||
|
||||
void wrapper
|
||||
.find('.n-carousel__arrow--left')
|
||||
.trigger('click')
|
||||
.then(() => {
|
||||
expect(slidesDOMArray[1].attributes('aria-hidden')).toBe('false')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user