Skip to content

Commit 96c29c4

Browse files
committed
fix: failing test
1 parent 3994787 commit 96c29c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/FileUtilsTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ describe('FileUtils', () => {
465465
const mockTranslate = ((path: string) => path) as LocaleContextProps['translate'];
466466

467467
it('should return correct error text for IMAGE_DIMENSIONS_TOO_LARGE', () => {
468-
const result = getFileValidationErrorText(mockTranslate, CONST.FILE_VALIDATION_ERRORS.IMAGE_DIMENSIONS_TOO_LARGE);
468+
const result = getFileValidationErrorText(mockTranslate, {error: CONST.FILE_VALIDATION_ERRORS.IMAGE_DIMENSIONS_TOO_LARGE});
469469

470470
expect(result.title).toBe('attachmentPicker.attachmentError');
471471
expect(result.reason).toBe('attachmentPicker.imageDimensionsTooLarge');

0 commit comments

Comments
 (0)