test: update legacy test cases

This commit is contained in:
chenjiahan
2020-12-31 16:06:49 +08:00
parent 559710f945
commit b03341792e
15 changed files with 88 additions and 88 deletions
+4 -4
View File
@@ -145,8 +145,8 @@ test('check the direction props', () => {
});
let children = wrapper.findAll('.van-list > div');
expect(children.at(0).is('.van-list__placeholder')).toBeTruthy();
expect(children.at(1).is('.list-item')).toBeTruthy();
expect(children[0].is('.van-list__placeholder')).toBeTruthy();
expect(children[1].is('.list-item')).toBeTruthy();
// change the direction's value
wrapper.setProps({
@@ -154,6 +154,6 @@ test('check the direction props', () => {
});
children = wrapper.findAll('.van-list > div');
expect(children.at(0).is('.list-item')).toBeTruthy();
expect(children.at(1).is('.van-list__placeholder')).toBeTruthy();
expect(children[0].is('.list-item')).toBeTruthy();
expect(children[1].is('.van-list__placeholder')).toBeTruthy();
});