@@ -1360,7 +1360,7 @@ describe('Parse.Query testing', () => {
1360
1360
. find ( )
1361
1361
. then ( done . fail )
1362
1362
. catch ( error => expect ( error . code ) . toBe ( Parse . Error . INVALID_KEY_NAME ) )
1363
- . finally ( done ) ;
1363
+ . then ( done ) ;
1364
1364
} ) ;
1365
1365
1366
1366
it ( 'get' , function ( done ) {
@@ -1387,7 +1387,7 @@ describe('Parse.Query testing', () => {
1387
1387
) {
1388
1388
ok ( items [ 0 ] ) ;
1389
1389
const query = new Parse . Query ( TestObject ) ;
1390
- query . get ( undefined ) . then ( fail , done ) ;
1390
+ query . get ( undefined ) . then ( fail , ( ) => done ( ) ) ;
1391
1391
} ) ;
1392
1392
} ) ;
1393
1393
@@ -1453,7 +1453,7 @@ describe('Parse.Query testing', () => {
1453
1453
. first ( )
1454
1454
. then ( done . fail )
1455
1455
. catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_KEY_NAME ) )
1456
- . finally ( done ) ;
1456
+ . then ( done ) ;
1457
1457
} ) ;
1458
1458
1459
1459
const Container = Parse . Object . extend ( {
@@ -1821,7 +1821,7 @@ describe('Parse.Query testing', () => {
1821
1821
. find ( )
1822
1822
. then ( done . fail )
1823
1823
. catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_KEY_NAME ) )
1824
- . finally ( done ) ;
1824
+ . then ( done ) ;
1825
1825
} ) ;
1826
1826
} ) ;
1827
1827
@@ -2044,7 +2044,7 @@ describe('Parse.Query testing', () => {
2044
2044
. find ( )
2045
2045
. then ( done . fail )
2046
2046
. catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_QUERY ) )
2047
- . finally ( done ) ;
2047
+ . then ( done ) ;
2048
2048
} ) ;
2049
2049
2050
2050
it ( 'Use a regex that requires all modifiers' , function ( done ) {
@@ -4235,7 +4235,7 @@ describe('Parse.Query testing', () => {
4235
4235
obj1
4236
4236
. save ( { useMasterKey : true } )
4237
4237
. then ( ( ) => q . find ( { useMasterKey : true } ) )
4238
- . then ( done . fail , done ) ;
4238
+ . then ( done . fail , ( ) => done ( ) ) ;
4239
4239
} ) ;
4240
4240
4241
4241
it_only_db ( 'mongo' ) (
@@ -4252,7 +4252,7 @@ describe('Parse.Query testing', () => {
4252
4252
obj1
4253
4253
. save ( { useMasterKey : true } )
4254
4254
. then ( ( ) => q . find ( { useMasterKey : true } ) )
4255
- . then ( done . fail , done ) ;
4255
+ . then ( done . fail , ( ) => done ( ) ) ;
4256
4256
}
4257
4257
) ;
4258
4258
@@ -4399,7 +4399,7 @@ describe('Parse.Query testing', () => {
4399
4399
q . find ( )
4400
4400
. then ( done . fail )
4401
4401
. catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_JSON ) )
4402
- . finally ( done ) ;
4402
+ . then ( done ) ;
4403
4403
} ) ;
4404
4404
4405
4405
it ( 'withJSON with geoWithin.centerSphere fails with invalid distance' , done => {
@@ -4414,7 +4414,7 @@ describe('Parse.Query testing', () => {
4414
4414
q . find ( )
4415
4415
. then ( done . fail )
4416
4416
. catch ( e => expect ( e . code ) . toBe ( Parse . Error . INVALID_JSON ) )
4417
- . finally ( ( ) => done ( ) ) ;
4417
+ . then ( done ) ;
4418
4418
} ) ;
4419
4419
4420
4420
it ( 'withJSON with geoWithin.centerSphere fails with invalid coordinate' , done => {
@@ -4428,7 +4428,7 @@ describe('Parse.Query testing', () => {
4428
4428
q . withJSON ( jsonQ ) ;
4429
4429
q . find ( )
4430
4430
. then ( done . fail )
4431
- . catch ( done ) ;
4431
+ . catch ( ( ) => done ( ) ) ;
4432
4432
} ) ;
4433
4433
4434
4434
it ( 'withJSON with geoWithin.centerSphere fails with invalid geo point' , done => {
@@ -4442,6 +4442,6 @@ describe('Parse.Query testing', () => {
4442
4442
q . withJSON ( jsonQ ) ;
4443
4443
q . find ( )
4444
4444
. then ( done . fail )
4445
- . catch ( done ) ;
4445
+ . catch ( ( ) => done ( ) ) ;
4446
4446
} ) ;
4447
4447
} ) ;
0 commit comments