@@ -3137,7 +3137,7 @@ describe('Parse.Query testing', () => {
3137
3137
const obj = new TestObject ( { foo : 'baz' , bar : 1 , qux : 2 } ) ;
3138
3138
await obj . save ( ) ;
3139
3139
obj . _clearServerData ( ) ;
3140
- var query1 = new Parse . Query ( TestObject ) ;
3140
+ const query1 = new Parse . Query ( TestObject ) ;
3141
3141
query1 . select ( 'foo' ) ;
3142
3142
const result1 = await query1 . first ( ) ;
3143
3143
ok ( result1 . id , 'expected object id to be set' ) ;
@@ -3154,7 +3154,7 @@ describe('Parse.Query testing', () => {
3154
3154
strictEqual ( result2 . get ( 'qux' ) , 2 ) ;
3155
3155
3156
3156
obj . _clearServerData ( ) ;
3157
- var query2 = new Parse . Query ( TestObject ) ;
3157
+ const query2 = new Parse . Query ( TestObject ) ;
3158
3158
query2 . select ( ) ;
3159
3159
const result3 = await query2 . first ( ) ;
3160
3160
ok ( result3 . id , 'expected object id to be set' ) ;
@@ -3166,7 +3166,7 @@ describe('Parse.Query testing', () => {
3166
3166
strictEqual ( result3 . get ( 'qux' ) , undefined , "expected 'qux' field to be unset" ) ;
3167
3167
3168
3168
obj . _clearServerData ( ) ;
3169
- var query3 = new Parse . Query ( TestObject ) ;
3169
+ const query3 = new Parse . Query ( TestObject ) ;
3170
3170
query3 . select ( [ ] ) ;
3171
3171
const result4 = await query3 . first ( ) ;
3172
3172
ok ( result4 . id , 'expected object id to be set' ) ;
@@ -3178,7 +3178,7 @@ describe('Parse.Query testing', () => {
3178
3178
strictEqual ( result4 . get ( 'qux' ) , undefined , "expected 'qux' field to be unset" ) ;
3179
3179
3180
3180
obj . _clearServerData ( ) ;
3181
- var query4 = new Parse . Query ( TestObject ) ;
3181
+ const query4 = new Parse . Query ( TestObject ) ;
3182
3182
query4 . select ( [ 'foo' ] ) ;
3183
3183
const result5 = await query4 . first ( ) ;
3184
3184
ok ( result5 . id , 'expected object id to be set' ) ;
@@ -3190,17 +3190,17 @@ describe('Parse.Query testing', () => {
3190
3190
strictEqual ( result5 . get ( 'qux' ) , undefined , "expected 'qux' field to be unset" ) ;
3191
3191
3192
3192
obj . _clearServerData ( ) ;
3193
- var query5 = new Parse . Query ( TestObject ) ;
3193
+ const query5 = new Parse . Query ( TestObject ) ;
3194
3194
query5 . select ( [ 'foo' , 'bar' ] ) ;
3195
3195
const result6 = await query5 . first ( ) ;
3196
3196
ok ( result6 . id , 'expected object id to be set' ) ;
3197
3197
ok ( ! result6 . dirty ( ) , 'expected result not to be dirty' ) ;
3198
3198
strictEqual ( result6 . get ( 'foo' ) , 'baz' ) ;
3199
3199
strictEqual ( result6 . get ( 'bar' ) , 1 ) ;
3200
3200
strictEqual ( result6 . get ( 'qux' ) , undefined , "expected 'qux' field to be unset" ) ;
3201
-
3201
+
3202
3202
obj . _clearServerData ( ) ;
3203
- var query6 = new Parse . Query ( TestObject ) ;
3203
+ const query6 = new Parse . Query ( TestObject ) ;
3204
3204
query6 . select ( [ 'foo' , 'bar' , 'qux' ] ) ;
3205
3205
const result7 = await query6 . first ( ) ;
3206
3206
ok ( result7 . id , 'expected object id to be set' ) ;
@@ -3210,7 +3210,7 @@ describe('Parse.Query testing', () => {
3210
3210
strictEqual ( result7 . get ( 'qux' ) , 2 ) ;
3211
3211
3212
3212
obj . _clearServerData ( ) ;
3213
- var query7 = new Parse . Query ( TestObject ) ;
3213
+ const query7 = new Parse . Query ( TestObject ) ;
3214
3214
query7 . select ( 'foo' , 'bar' ) ;
3215
3215
const result8 = await query7 . first ( ) ;
3216
3216
ok ( result8 . id , 'expected object id to be set' ) ;
@@ -3220,7 +3220,7 @@ describe('Parse.Query testing', () => {
3220
3220
strictEqual ( result8 . get ( 'qux' ) , undefined , "expected 'qux' field to be unset" ) ;
3221
3221
3222
3222
obj . _clearServerData ( ) ;
3223
- var query8 = new Parse . Query ( TestObject ) ;
3223
+ const query8 = new Parse . Query ( TestObject ) ;
3224
3224
query8 . select ( 'foo' , 'bar' , 'qux' ) ;
3225
3225
const result9 = await query8 . first ( ) ;
3226
3226
ok ( result9 . id , 'expected object id to be set' ) ;
@@ -3366,7 +3366,7 @@ describe('Parse.Query testing', () => {
3366
3366
strictEqual ( result1 . get ( 'foo' ) , undefined , "expected 'bar' field to be unset" ) ;
3367
3367
strictEqual ( result1 . get ( 'bar' ) , 1 ) ;
3368
3368
strictEqual ( result1 . get ( 'qux' ) , 2 ) ;
3369
-
3369
+
3370
3370
const result2 = await result1 . fetch ( ) ;
3371
3371
strictEqual ( result2 . get ( 'foo' ) , 'baz' ) ;
3372
3372
strictEqual ( result2 . get ( 'bar' ) , 1 ) ;
@@ -3407,7 +3407,7 @@ describe('Parse.Query testing', () => {
3407
3407
strictEqual ( result5 . get ( 'foo' ) , undefined , "expected 'bar' field to be unset" ) ;
3408
3408
strictEqual ( result5 . get ( 'bar' ) , 1 ) ;
3409
3409
strictEqual ( result5 . get ( 'qux' ) , 2 ) ;
3410
-
3410
+
3411
3411
obj . _clearServerData ( ) ;
3412
3412
const query5 = new Parse . Query ( TestObject ) ;
3413
3413
query5 . exclude ( [ 'foo' , 'bar' ] ) ;
@@ -4265,12 +4265,12 @@ describe('Parse.Query testing', () => {
4265
4265
BarBaz . set ( 'key' , 'value' ) ;
4266
4266
BarBaz . set ( 'otherKey' , 'value' ) ;
4267
4267
await BarBaz . save ( ) ;
4268
-
4268
+
4269
4269
Foobar . set ( 'foo' , 'bar' ) ;
4270
4270
Foobar . set ( 'fizz' , 'buzz' ) ;
4271
4271
Foobar . set ( 'barBaz' , BarBaz ) ;
4272
4272
const savedFoobar = await Foobar . save ( ) ;
4273
-
4273
+
4274
4274
const foobarQuery = new Parse . Query ( 'Foobar' ) ;
4275
4275
foobarQuery . exclude ( [ 'foo' , 'barBaz.otherKey' ] ) ;
4276
4276
const foobarObj = await foobarQuery . get ( savedFoobar . id ) ;
@@ -4281,7 +4281,7 @@ describe('Parse.Query testing', () => {
4281
4281
equal ( foobarObj . get ( 'barBaz' ) . get ( 'otherKey' ) , undefined ) ;
4282
4282
} else {
4283
4283
fail ( 'barBaz should be set' ) ;
4284
- }
4284
+ }
4285
4285
} ) ;
4286
4286
4287
4287
it ( 'exclude nested keys 2 level' , async ( ) => {
@@ -4292,7 +4292,7 @@ describe('Parse.Query testing', () => {
4292
4292
Bazoo . set ( 'some' , 'thing' ) ;
4293
4293
Bazoo . set ( 'otherSome' , 'value' ) ;
4294
4294
await Bazoo . save ( ) ;
4295
-
4295
+
4296
4296
BarBaz . set ( 'key' , 'value' ) ;
4297
4297
BarBaz . set ( 'otherKey' , 'value' ) ;
4298
4298
BarBaz . set ( 'bazoo' , Bazoo ) ;
@@ -4315,7 +4315,7 @@ describe('Parse.Query testing', () => {
4315
4315
equal ( foobarObj . get ( 'barBaz' ) . get ( 'bazoo' ) . get ( 'otherSome' ) , undefined ) ;
4316
4316
} else {
4317
4317
fail ( 'barBaz should be set' ) ;
4318
- }
4318
+ }
4319
4319
} ) ;
4320
4320
4321
4321
it ( 'include with *' , async ( ) => {
0 commit comments