@@ -99,16 +99,8 @@ describe('Dropzone', () => {
9999
100100 it ( 'should render children function' , ( ) => {
101101 const content = < p > some content</ p >
102- const dropzone = mount (
103- < Dropzone >
104- { content }
105- </ Dropzone >
106- )
107- const dropzoneWithFunction = mount (
108- < Dropzone >
109- { ( ) => content }
110- </ Dropzone >
111- )
102+ const dropzone = mount ( < Dropzone > { content } </ Dropzone > )
103+ const dropzoneWithFunction = mount ( < Dropzone > { ( ) => content } </ Dropzone > )
112104 expect ( dropzoneWithFunction . html ( ) ) . toEqual ( dropzone . html ( ) )
113105 } )
114106 } )
@@ -224,10 +216,25 @@ describe('Dropzone', () => {
224216
225217 it ( 'should reset the value of input' , ( ) => {
226218 const dropzone = mount ( < Dropzone /> )
227- expect ( dropzone . render ( ) . find ( 'input' ) . attr ( 'value' ) ) . toBeUndefined ( )
228- expect ( dropzone . render ( ) . find ( 'input' ) . attr ( 'value' , 10 ) ) . not . toBeUndefined ( )
219+ expect (
220+ dropzone
221+ . render ( )
222+ . find ( 'input' )
223+ . attr ( 'value' )
224+ ) . toBeUndefined ( )
225+ expect (
226+ dropzone
227+ . render ( )
228+ . find ( 'input' )
229+ . attr ( 'value' , 10 )
230+ ) . not . toBeUndefined ( )
229231 dropzone . simulate ( 'click' )
230- expect ( dropzone . render ( ) . find ( 'input' ) . attr ( 'value' ) ) . toBeUndefined ( )
232+ expect (
233+ dropzone
234+ . render ( )
235+ . find ( 'input' )
236+ . attr ( 'value' )
237+ ) . toBeUndefined ( )
231238 } )
232239
233240 it ( 'should trigger click even on the input' , done => {
@@ -355,11 +362,7 @@ describe('Dropzone', () => {
355362 } )
356363
357364 it ( 'should set proper dragActive state on dragEnter' , ( ) => {
358- const dropzone = mount (
359- < Dropzone >
360- { props => < DummyChildComponent { ...props } /> }
361- </ Dropzone >
362- )
365+ const dropzone = mount ( < Dropzone > { props => < DummyChildComponent { ...props } /> } </ Dropzone > )
363366 const child = dropzone . find ( DummyChildComponent )
364367 dropzone . simulate ( 'dragEnter' , { dataTransfer : { files } } )
365368 expect ( child ) . toHaveProp ( 'isDragActive' , true )
@@ -369,9 +372,7 @@ describe('Dropzone', () => {
369372
370373 it ( 'should set proper dragReject state on dragEnter' , ( ) => {
371374 const dropzone = mount (
372- < Dropzone accept = "image/*" >
373- { props => < DummyChildComponent { ...props } /> }
374- </ Dropzone >
375+ < Dropzone accept = "image/*" > { props => < DummyChildComponent { ...props } /> } </ Dropzone >
375376 )
376377 const child = dropzone . find ( DummyChildComponent )
377378 dropzone . simulate ( 'dragEnter' , {
@@ -462,9 +463,7 @@ describe('Dropzone', () => {
462463
463464 it ( 'should set proper dragActive state if accept prop changes mid-drag' , ( ) => {
464465 const dropzone = mount (
465- < Dropzone accept = "image/*" >
466- { props => < DummyChildComponent { ...props } /> }
467- </ Dropzone >
466+ < Dropzone accept = "image/*" > { props => < DummyChildComponent { ...props } /> } </ Dropzone >
468467 )
469468 const child = dropzone . find ( DummyChildComponent )
470469 dropzone . simulate ( 'dragEnter' , { dataTransfer : { files : images } } )
@@ -942,7 +941,7 @@ describe('Dropzone', () => {
942941
943942 const InnerDragAccepted = ( ) => < p > Accepted</ p >
944943 const InnerDragRejected = ( ) => < p > Rejected</ p >
945- const InnerDropzone = ( ) =>
944+ const InnerDropzone = ( ) => (
946945 < Dropzone
947946 onDrop = { innerDropSpy }
948947 onDropAccepted = { innerDropAcceptedSpy }
@@ -955,6 +954,7 @@ describe('Dropzone', () => {
955954 return < p > No drag</ p >
956955 } }
957956 </ Dropzone >
957+ )
958958
959959 describe ( 'dropping on the inner dropzone' , ( ) => {
960960 it ( 'mounts both dropzones' , ( ) => {
0 commit comments