feat(Tab): add dot prop (#5272)
This commit is contained in:
@@ -239,3 +239,15 @@ test('title-style prop', () => {
|
||||
|
||||
expect(wrapper.find('.van-tab').element.style.color).toEqual('red');
|
||||
});
|
||||
|
||||
test('dot prop', () => {
|
||||
const wrapper = mount({
|
||||
template: `
|
||||
<van-tabs>
|
||||
<van-tab dot>Text</van-tab>
|
||||
</van-tabs>
|
||||
`
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user