@@ -72,20 +72,20 @@ describe('Document Controller', () => {
7272  describe ( 'create' ,  ( )  =>  { 
7373    it ( 'should throw an error if the "index" argument is not provided' ,  ( )  =>  { 
7474      should ( function  ( )  { 
75-         kuzzle . document . create ( undefined ,  'collection' ,  'document-id' ,   { foo : 'bar' } ,  options ) ; 
75+         kuzzle . document . create ( undefined ,  'collection' ,  { foo : 'bar' } ,   'document-id' ,  options ) ; 
7676      } ) . throw ( 'Kuzzle.document.create: index is required' ) ; 
7777    } ) ; 
7878
7979    it ( 'should throw an error if the "collection" argument is not provided' ,  ( )  =>  { 
8080      should ( function  ( )  { 
81-         kuzzle . document . create ( 'index' ,  undefined ,  'document-id' ,   { foo : 'bar' } ,  options ) ; 
81+         kuzzle . document . create ( 'index' ,  undefined ,  { foo : 'bar' } ,   'document-id' ,  options ) ; 
8282      } ) . throw ( 'Kuzzle.document.create: collection is required' ) ; 
8383    } ) ; 
8484
85-     it ( 'should throw an error if the "body " argument is not provided' ,  ( )  =>  { 
85+     it ( 'should throw an error if the "document " argument is not provided' ,  ( )  =>  { 
8686      should ( function  ( )  { 
87-         kuzzle . document . create ( 'index' ,  'collection' ,  'document-id' ,   undefined ,  options ) ; 
88-       } ) . throw ( 'Kuzzle.document.create: body  is required' ) ; 
87+         kuzzle . document . create ( 'index' ,  'collection' ,  undefined ,   'document-id' ,  options ) ; 
88+       } ) . throw ( 'Kuzzle.document.create: document  is required' ) ; 
8989    } ) ; 
9090
9191    it ( 'should call document/create query and return a Promise which resolves the created document' ,  ( )  =>  { 
@@ -96,7 +96,7 @@ describe('Document Controller', () => {
9696      } ; 
9797      kuzzle . query . resolves ( { result} ) ; 
9898
99-       return  kuzzle . document . create ( 'index' ,  'collection' ,  'document-id' ,   { foo : 'bar' } ,  options ) 
99+       return  kuzzle . document . create ( 'index' ,  'collection' ,  { foo : 'bar' } ,   'document-id' ,  options ) 
100100        . then ( res  =>  { 
101101          should ( kuzzle . query ) 
102102            . be . calledOnce ( ) 
@@ -122,7 +122,7 @@ describe('Document Controller', () => {
122122      } ; 
123123      kuzzle . query . resolves ( { result} ) ; 
124124
125-       return  kuzzle . document . create ( 'index' ,  'collection' ,  'document-id' ,   { foo : 'bar' } ,  { refresh : true } ) 
125+       return  kuzzle . document . create ( 'index' ,  'collection' ,  { foo : 'bar' } ,   'document-id' ,  { refresh : true } ) 
126126        . then ( res  =>  { 
127127          should ( kuzzle . query ) 
128128            . be . calledOnce ( ) 
0 commit comments