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 -1
View File
@@ -31,7 +31,7 @@ export default createComponent({
loadingText: String,
modelValue: {
type: Boolean,
required: true,
default: false,
},
successDuration: {
type: [Number, String],
@@ -148,5 +148,5 @@ test('should set height when using head-height', async () => {
},
});
const head = wrapper.find('.van-pull-refresh__head');
expect(head.element.style.height).toEqual('100px');
expect(head.style.height).toEqual('100px');
});