Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function resetMocks() {
Sortable.mockClear();
SortableFake.destroy.mockClear();
SortableFake.option.mockClear();
}
beforeEach(() => {
Sortable.mockClear();
items = ["a", "b", "c"];
const inside = items.map(item => `<div>${item}</div>`).join("");
const template = `${inside}`
wrapper = shallowMount(draggable, {
attachToDocument: true,
propsData: {
value: items
},
slots: {
default: template,
}
});
vm = wrapper.vm;
props = vm.$options.props;
element = wrapper.element;
});