Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should remove class on drag-leave', () => {
container.dispatchEvent(EventGenerator.dragOver);
fixture.detectChanges();
expect(container.classList.contains(appliedClass)).toBeTruthy();
container.dispatchEvent(EventGenerator.dragLeave);
fixture.detectChanges();
expect(container.classList.contains(appliedClass)).toBeFalsy();
});