test: prefer using classes

This commit is contained in:
chenjiahan
2021-01-02 21:00:11 +08:00
parent c261bcc4a7
commit 866d9c0381
4 changed files with 22 additions and 21 deletions
+1 -3
View File
@@ -47,9 +47,7 @@ test('should render "van-checkbox--label-disabled" class when using label-disabl
},
});
expect(
wrapper.element.classList.contains('van-checkbox--label-disabled')
).toBeTruthy();
expect(wrapper.classes()).toContain('van-checkbox--label-disabled');
});
test('should emit "update:modelValue" event when label is clicked', () => {