Skip to content

Commit

Permalink
Remove test for no-longer supported feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ryubro committed Sep 3, 2024
1 parent e4ffdd9 commit f628ecf
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/ui/components/input-file/test/lion-input-file.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,20 +354,6 @@ describe('lion-input-file', () => {
expect(error.message).to.equal('Please select a .jpg, .png or .pdf file with max 500MB.');
});
});

it('error message should add all file extensions to the validator message also works without dots "."', async () => {
const el = await fixture(html`
<lion-input-file label="Select" accept="jpg, png, pdf"></lion-input-file>
`);

mimicSelectFile(el, [fileWrongType]);
await el.updateComplete;

// @ts-expect-error [allow-protected-in-test]
el._selectedFilesMetaData[0].validationFeedback?.forEach(error => {
expect(error.message).to.equal('Please select a .jpg, .png or .pdf file with max 500MB.');
});
});
});

describe('invalid file sizes', async () => {
Expand Down

0 comments on commit f628ecf

Please sign in to comment.