types: test cases typing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import SubmitBar from '..';
|
||||
import { mount } from '@vue/test-utils';
|
||||
import { mount } from '../../../test';
|
||||
|
||||
test('should emit submit event when submit button is clicked', () => {
|
||||
const wrapper = mount(SubmitBar);
|
||||
@@ -78,9 +78,7 @@ test('should adjust text align when using text-align prop', () => {
|
||||
textAlign: 'left',
|
||||
},
|
||||
});
|
||||
expect(wrapper.find('.van-submit-bar__text').element.style.textAlign).toEqual(
|
||||
'left'
|
||||
);
|
||||
expect(wrapper.find('.van-submit-bar__text').style.textAlign).toEqual('left');
|
||||
});
|
||||
|
||||
test('should allow to disable safe-area-inset-bottom prop', () => {
|
||||
Reference in New Issue
Block a user