types: test cases typing

This commit is contained in:
chenjiahan
2021-02-11 13:04:00 +08:00
parent 7a5fb894d2
commit e2e0f66fe6
87 changed files with 129 additions and 121 deletions
@@ -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', () => {