Skip to content

Commit

Permalink
test: [notification] add zIndex test case (#12949)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed May 26, 2023
1 parent 232649a commit fe52138
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,17 @@ describe('Notification.vue', () => {
})

test('should be able to render z-index style with zIndex flag', async () => {
const wrapper = _mount({})
const wrapper = _mount({
props: {
zIndex: 9999,
},
})
await nextTick()

expect(wrapper.vm.positionStyle).toEqual(
expect.objectContaining({
top: '0px',
zIndex: 9999,
})
)
})
Expand Down

0 comments on commit fe52138

Please sign in to comment.