[Improvement] upgrade to jest-serializer-vue@2.0 (#1215)

This commit is contained in:
neverland
2018-06-01 18:04:16 +08:00
committed by GitHub
parent 1fed9bdbcd
commit 01e7934d19
16 changed files with 225 additions and 214 deletions

View File

@@ -13,23 +13,23 @@ it('drag and show left part', () => {
const wrapper = mount(CellSwipe, defaultProps);
triggerDrag(wrapper, 10, 0);
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
triggerDrag(wrapper, 50, 0);
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
triggerDrag(wrapper, 500, 0);
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
triggerDrag(wrapper, 0, 100);
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
});
it('drag and show left part', () => {
const wrapper = mount(CellSwipe, defaultProps);
triggerDrag(wrapper, -50, 0);
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
});
test('on close prop', () => {