Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("creates sortable instance with options", () => {
expect(Sortable.mock.calls.length).toBe(1);
const parameters = Sortable.mock.calls[0];
expect(parameters[0]).toBe(element);
expect(parameters[1]).toMatchObject({
draggable: ">*",
sortableOption: "value",
toBeCamelized: true
});
})
it("creates sortable instance with options on transition root", () => {
expect(Sortable.mock.calls.length).toBe(1);
const parameters = Sortable.mock.calls[0];
expect(parameters[0]).toBe(element.children[0]);
})
function getEvent(name) {
return Sortable.mock.calls[0][1][name];
}