Skip to content

Commit

Permalink
fixup! Fix(web-react): FileUploaderInput className #DS-1508
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Oct 21, 2024
1 parent f6fe608 commit 7eea633
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ describe('FileUploaderInput', () => {

const dropZone = screen.getAllByTestId('test')[0];

expect(dropZone).toHaveAttribute('ondragover');
expect(dropZone).toHaveAttribute('ondragenter');
expect(dropZone).toHaveAttribute('ondragleave');
expect(dropZone).toHaveAttribute('ondrop');
expect(dropZone).toHaveClass('has-drag-and-drop');
});

it('should not have drag-and-drop listeners in SSR', () => {
Expand All @@ -37,10 +34,7 @@ describe('FileUploaderInput', () => {

const dropZone = screen.getAllByTestId('test')[0];

expect(dropZone).not.toHaveAttribute('ondragover');
expect(dropZone).not.toHaveAttribute('ondragenter');
expect(dropZone).not.toHaveAttribute('ondragleave');
expect(dropZone).not.toHaveAttribute('ondrop');
expect(dropZone).not.toHaveClass('has-drag-and-drop');
});
});

Expand Down

0 comments on commit 7eea633

Please sign in to comment.