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
+2 -2
View File
@@ -21,8 +21,8 @@ test('should allow to custom class name with class-name prop', () => {
},
});
const overlay = wrapper.find('.van-overlay').element;
expect(overlay.classList.contains('foo')).toBeTruthy();
const overlay = wrapper.find('.van-overlay');
expect(overlay.classes()).toContain('foo');
});
test('should allow to custom style with custom-style prop', () => {