Skip to content

Commit

Permalink
test: remove duplicated test
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Sep 6, 2024
1 parent 99efb59 commit 17a535f
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,30 +108,6 @@ describe('FilePicker', function () {
expect(fileRegistry.setFiles).to.have.been.calledWith('files::fileTestId', [file]);
});

it('should files with nested filepickers', function () {
// given
const file = new File([''], 'test.png', { type: 'image/png' });
const fileRegistry = getMockFileRegistry();
const { container } = createFilePicker({
services: {
fileRegistry,
},
value: 'files::fileTestId',
});

// when

fireEvent.change(container.querySelector('input[type="file"]'), {
target: {
files: [file],
},
});

// then

expect(fileRegistry.setFiles).to.have.been.calledWith('files::fileTestId', [file]);
});

it('should accept multiple files and limit the file types', function () {
// when
const { container } = createFilePicker({
Expand Down

0 comments on commit 17a535f

Please sign in to comment.