@@ -1360,7 +1360,7 @@ describe('Parse.Query testing', () => {
13601360 . find ( )
13611361 . then ( done . fail )
13621362 . catch ( error => expect ( error . code ) . toBe ( Parse . Error . INVALID_KEY_NAME ) )
1363- . finally ( done ) ;
1363+ . then ( done ) ;
13641364 } ) ;
13651365
13661366 it ( 'get' , function ( done ) {
@@ -1387,7 +1387,7 @@ describe('Parse.Query testing', () => {
13871387 ) {
13881388 ok ( items [ 0 ] ) ;
13891389 const query = new Parse . Query ( TestObject ) ;
1390- query . get ( undefined ) . then ( fail , done ) ;
1390+ query . get ( undefined ) . then ( fail , ( ) => done ( ) ) ;
13911391 } ) ;
13921392 } ) ;
13931393
@@ -1453,7 +1453,7 @@ describe('Parse.Query testing', () => {
14531453 . first ( )
14541454 . then ( done . fail )
14551455 . catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_KEY_NAME ) )
1456- . finally ( done ) ;
1456+ . then ( done ) ;
14571457 } ) ;
14581458
14591459 const Container = Parse . Object . extend ( {
@@ -1821,7 +1821,7 @@ describe('Parse.Query testing', () => {
18211821 . find ( )
18221822 . then ( done . fail )
18231823 . catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_KEY_NAME ) )
1824- . finally ( done ) ;
1824+ . then ( done ) ;
18251825 } ) ;
18261826 } ) ;
18271827
@@ -2044,7 +2044,7 @@ describe('Parse.Query testing', () => {
20442044 . find ( )
20452045 . then ( done . fail )
20462046 . catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_QUERY ) )
2047- . finally ( done ) ;
2047+ . then ( done ) ;
20482048 } ) ;
20492049
20502050 it ( 'Use a regex that requires all modifiers' , function ( done ) {
@@ -4235,7 +4235,7 @@ describe('Parse.Query testing', () => {
42354235 obj1
42364236 . save ( { useMasterKey : true } )
42374237 . then ( ( ) => q . find ( { useMasterKey : true } ) )
4238- . then ( done . fail , done ) ;
4238+ . then ( done . fail , ( ) => done ( ) ) ;
42394239 } ) ;
42404240
42414241 it_only_db ( 'mongo' ) (
@@ -4252,7 +4252,7 @@ describe('Parse.Query testing', () => {
42524252 obj1
42534253 . save ( { useMasterKey : true } )
42544254 . then ( ( ) => q . find ( { useMasterKey : true } ) )
4255- . then ( done . fail , done ) ;
4255+ . then ( done . fail , ( ) => done ( ) ) ;
42564256 }
42574257 ) ;
42584258
@@ -4399,7 +4399,7 @@ describe('Parse.Query testing', () => {
43994399 q . find ( )
44004400 . then ( done . fail )
44014401 . catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_JSON ) )
4402- . finally ( done ) ;
4402+ . then ( done ) ;
44034403 } ) ;
44044404
44054405 it ( 'withJSON with geoWithin.centerSphere fails with invalid distance' , done => {
@@ -4414,7 +4414,7 @@ describe('Parse.Query testing', () => {
44144414 q . find ( )
44154415 . then ( done . fail )
44164416 . catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_JSON ) )
4417- . finally ( ( ) => done ( ) ) ;
4417+ . then ( done ) ;
44184418 } ) ;
44194419
44204420 it ( 'withJSON with geoWithin.centerSphere fails with invalid coordinate' , done => {
@@ -4428,7 +4428,7 @@ describe('Parse.Query testing', () => {
44284428 q . withJSON ( jsonQ ) ;
44294429 q . find ( )
44304430 . then ( done . fail )
4431- . catch ( done ) ;
4431+ . catch ( ( ) => done ( ) ) ;
44324432 } ) ;
44334433
44344434 it ( 'withJSON with geoWithin.centerSphere fails with invalid geo point' , done => {
@@ -4442,6 +4442,6 @@ describe('Parse.Query testing', () => {
44424442 q . withJSON ( jsonQ ) ;
44434443 q . find ( )
44444444 . then ( done . fail )
4445- . catch ( done ) ;
4445+ . catch ( ( ) => done ( ) ) ;
44464446 } ) ;
44474447} ) ;
0 commit comments