[improvement] List: remove unnecessary test case

This commit is contained in:
陈嘉涵 2019-06-07 10:57:16 +08:00
parent 172ed6eaee
commit c1ecc21757

View File

@ -96,29 +96,6 @@ test('immediate check false', async () => {
expect(wrapper.emitted('input')).toBeFalsy();
});
test('keep-alive live cycle', () => {
const wrapper = mount(
{
template: `
<keep-alive>
<list v-if="show" />
</keep-alive>
`,
props: ['show'],
components: { List }
},
{
propsData: {
show: true
}
}
);
expect(wrapper.vm.$el).toBeTruthy();
wrapper.vm.show = false;
expect(wrapper.vm.$el.nodeType).toEqual(Node.COMMENT_NODE);
});
test('check the case that scroller is not window', async () => {
const restoreMock = mockGetBoundingClientRect({
top: 0,