Skip to content

Instantly share code, notes, and snippets.

@isabelandss
Last active December 17, 2020 14:41
Show Gist options
  • Save isabelandss/3504076858122391377fb220cf913ea7 to your computer and use it in GitHub Desktop.
Save isabelandss/3504076858122391377fb220cf913ea7 to your computer and use it in GitHub Desktop.
it('should', async () => {
const componentMock = componenstDrag[0];
directive = new DragDirective(componentMock);
directive.setReferences();
const event = {
target: {
id: "id",
classList: {
add: jest.fn(),
}
},
dataTransfer: {
setData: jest.fn(),
effectAllowed: jest.fn(),
},
}
directive.dragstart(event)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment