Last active
December 17, 2020 14:41
-
-
Save isabelandss/3504076858122391377fb220cf913ea7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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