feat: Add ability to paste file/image from clipboard (#5627)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
parent
06e2219110
commit
bcde84b5b5
3 changed files with 19 additions and 6 deletions
|
@ -24,7 +24,7 @@ describe('#File Helpers', () => {
|
|||
expect(fileSizeInMegaBytes(0)).toBe(0);
|
||||
});
|
||||
it('should return 19.07 if 20000000 is passed', () => {
|
||||
expect(fileSizeInMegaBytes(20000000)).toBe('19.07');
|
||||
expect(fileSizeInMegaBytes(20000000)).toBeCloseTo(19.07, 2);
|
||||
});
|
||||
});
|
||||
describe('checkFileSizeLimit', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue