From aaf4fdf0dd6f57c73043170ef971f33fc06e8702 Mon Sep 17 00:00:00 2001 From: kheradmand Date: Sat, 15 Feb 2020 13:56:20 +0330 Subject: [PATCH] refactor variable name defaut to default --- .../src/input/FileInput.spec.tsx | 33 ++++++++++--------- .../src/input/ImageInput.spec.tsx | 30 ++++++++--------- 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/packages/ra-ui-materialui/src/input/FileInput.spec.tsx b/packages/ra-ui-materialui/src/input/FileInput.spec.tsx index c71c0dcf15f..a99647d14d2 100644 --- a/packages/ra-ui-materialui/src/input/FileInput.spec.tsx +++ b/packages/ra-ui-materialui/src/input/FileInput.spec.tsx @@ -9,12 +9,12 @@ import FileInput from './FileInput'; describe('', () => { afterEach(cleanup); - const defautProps = { + const defaultProps = { source: 'image', resource: 'posts', }; - const defautPropsMultiple = { + const defaultPropsMultiple = { source: 'images', resource: 'posts', multiple: true, @@ -25,7 +25,7 @@ describe('', () => {
( - +
)} @@ -40,7 +40,7 @@ describe('', () => { ( - +
)} @@ -62,7 +62,7 @@ describe('', () => { onSubmit={onSubmit} render={({ handleSubmit }) => ( - +