@@ -840,7 +840,7 @@ describe('KuzzleDataCollection methods', function () {
840840
841841    it ( 'should send the right updateDocument query to Kuzzle' ,  function  ( done )  { 
842842      var 
843-         collection  =  new  KuzzleDataCollection ( kuzzle ,  expectedQuery . index ,  expectedQuery . collection ) , 
843+         collection  =  new  KuzzleDataCollection ( kuzzle ,  expectedQuery . collection ,  expectedQuery . index ) , 
844844        options  =  {  queuable : false  } ; 
845845      expectedQuery . options  =  options ; 
846846
@@ -854,7 +854,7 @@ describe('KuzzleDataCollection methods', function () {
854854    } ) ; 
855855
856856    it ( 'should handle arguments correctly' ,  function  ( )  { 
857-       var  collection  =  new  KuzzleDataCollection ( kuzzle ,  expectedQuery . index ,  expectedQuery . collection ) ; 
857+       var  collection  =  new  KuzzleDataCollection ( kuzzle ,  expectedQuery . collection ,  expectedQuery . index ) ; 
858858
859859      collection . updateDocument ( 'foo' ) ; 
860860      should ( emitted ) . be . true ( ) ; 
@@ -873,7 +873,7 @@ describe('KuzzleDataCollection methods', function () {
873873    } ) ; 
874874
875875    it ( 'should call the callback with an error if one occurs' ,  function  ( done )  { 
876-       var  collection  =  new  KuzzleDataCollection ( kuzzle ,  expectedQuery . index ,  expectedQuery . collection ) ; 
876+       var  collection  =  new  KuzzleDataCollection ( kuzzle ,  expectedQuery . collection ,  expectedQuery . index ) ; 
877877      error  =  'foobar' ; 
878878      this . timeout ( 50 ) ; 
879879
0 commit comments