Skip to content

Commit 91b5592

Browse files
committed
lint
1 parent d8f0bce commit 91b5592

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

spec/ParseQuery.spec.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,7 +3137,7 @@ describe('Parse.Query testing', () => {
31373137
const obj = new TestObject({ foo: 'baz', bar: 1, qux: 2 });
31383138
await obj.save();
31393139
obj._clearServerData();
3140-
var query1 = new Parse.Query(TestObject);
3140+
const query1 = new Parse.Query(TestObject);
31413141
query1.select('foo');
31423142
const result1 = await query1.first();
31433143
ok(result1.id, 'expected object id to be set');
@@ -3154,7 +3154,7 @@ describe('Parse.Query testing', () => {
31543154
strictEqual(result2.get('qux'), 2);
31553155

31563156
obj._clearServerData();
3157-
var query2 = new Parse.Query(TestObject);
3157+
const query2 = new Parse.Query(TestObject);
31583158
query2.select();
31593159
const result3 = await query2.first();
31603160
ok(result3.id, 'expected object id to be set');
@@ -3166,7 +3166,7 @@ describe('Parse.Query testing', () => {
31663166
strictEqual(result3.get('qux'), undefined, "expected 'qux' field to be unset");
31673167

31683168
obj._clearServerData();
3169-
var query3 = new Parse.Query(TestObject);
3169+
const query3 = new Parse.Query(TestObject);
31703170
query3.select([]);
31713171
const result4 = await query3.first();
31723172
ok(result4.id, 'expected object id to be set');
@@ -3178,7 +3178,7 @@ describe('Parse.Query testing', () => {
31783178
strictEqual(result4.get('qux'), undefined, "expected 'qux' field to be unset");
31793179

31803180
obj._clearServerData();
3181-
var query4 = new Parse.Query(TestObject);
3181+
const query4 = new Parse.Query(TestObject);
31823182
query4.select(['foo']);
31833183
const result5 = await query4.first();
31843184
ok(result5.id, 'expected object id to be set');
@@ -3190,17 +3190,17 @@ describe('Parse.Query testing', () => {
31903190
strictEqual(result5.get('qux'), undefined, "expected 'qux' field to be unset");
31913191

31923192
obj._clearServerData();
3193-
var query5 = new Parse.Query(TestObject);
3193+
const query5 = new Parse.Query(TestObject);
31943194
query5.select(['foo', 'bar']);
31953195
const result6 = await query5.first();
31963196
ok(result6.id, 'expected object id to be set');
31973197
ok(!result6.dirty(), 'expected result not to be dirty');
31983198
strictEqual(result6.get('foo'), 'baz');
31993199
strictEqual(result6.get('bar'), 1);
32003200
strictEqual(result6.get('qux'), undefined, "expected 'qux' field to be unset");
3201-
3201+
32023202
obj._clearServerData();
3203-
var query6 = new Parse.Query(TestObject);
3203+
const query6 = new Parse.Query(TestObject);
32043204
query6.select(['foo', 'bar', 'qux']);
32053205
const result7 = await query6.first();
32063206
ok(result7.id, 'expected object id to be set');
@@ -3210,7 +3210,7 @@ describe('Parse.Query testing', () => {
32103210
strictEqual(result7.get('qux'), 2);
32113211

32123212
obj._clearServerData();
3213-
var query7 = new Parse.Query(TestObject);
3213+
const query7 = new Parse.Query(TestObject);
32143214
query7.select('foo', 'bar');
32153215
const result8 = await query7.first();
32163216
ok(result8.id, 'expected object id to be set');
@@ -3220,7 +3220,7 @@ describe('Parse.Query testing', () => {
32203220
strictEqual(result8.get('qux'), undefined, "expected 'qux' field to be unset");
32213221

32223222
obj._clearServerData();
3223-
var query8 = new Parse.Query(TestObject);
3223+
const query8 = new Parse.Query(TestObject);
32243224
query8.select('foo', 'bar', 'qux');
32253225
const result9 = await query8.first();
32263226
ok(result9.id, 'expected object id to be set');
@@ -3366,7 +3366,7 @@ describe('Parse.Query testing', () => {
33663366
strictEqual(result1.get('foo'), undefined, "expected 'bar' field to be unset");
33673367
strictEqual(result1.get('bar'), 1);
33683368
strictEqual(result1.get('qux'), 2);
3369-
3369+
33703370
const result2 = await result1.fetch();
33713371
strictEqual(result2.get('foo'), 'baz');
33723372
strictEqual(result2.get('bar'), 1);
@@ -3407,7 +3407,7 @@ describe('Parse.Query testing', () => {
34073407
strictEqual(result5.get('foo'), undefined, "expected 'bar' field to be unset");
34083408
strictEqual(result5.get('bar'), 1);
34093409
strictEqual(result5.get('qux'), 2);
3410-
3410+
34113411
obj._clearServerData();
34123412
const query5 = new Parse.Query(TestObject);
34133413
query5.exclude(['foo', 'bar']);
@@ -4265,12 +4265,12 @@ describe('Parse.Query testing', () => {
42654265
BarBaz.set('key', 'value');
42664266
BarBaz.set('otherKey', 'value');
42674267
await BarBaz.save();
4268-
4268+
42694269
Foobar.set('foo', 'bar');
42704270
Foobar.set('fizz', 'buzz');
42714271
Foobar.set('barBaz', BarBaz);
42724272
const savedFoobar = await Foobar.save();
4273-
4273+
42744274
const foobarQuery = new Parse.Query('Foobar');
42754275
foobarQuery.exclude(['foo', 'barBaz.otherKey']);
42764276
const foobarObj = await foobarQuery.get(savedFoobar.id);
@@ -4281,7 +4281,7 @@ describe('Parse.Query testing', () => {
42814281
equal(foobarObj.get('barBaz').get('otherKey'), undefined);
42824282
} else {
42834283
fail('barBaz should be set');
4284-
}
4284+
}
42854285
});
42864286

42874287
it('exclude nested keys 2 level', async () => {
@@ -4292,7 +4292,7 @@ describe('Parse.Query testing', () => {
42924292
Bazoo.set('some', 'thing');
42934293
Bazoo.set('otherSome', 'value');
42944294
await Bazoo.save();
4295-
4295+
42964296
BarBaz.set('key', 'value');
42974297
BarBaz.set('otherKey', 'value');
42984298
BarBaz.set('bazoo', Bazoo);
@@ -4315,7 +4315,7 @@ describe('Parse.Query testing', () => {
43154315
equal(foobarObj.get('barBaz').get('bazoo').get('otherSome'), undefined);
43164316
} else {
43174317
fail('barBaz should be set');
4318-
}
4318+
}
43194319
});
43204320

43214321
it('include with *', async () => {

0 commit comments

Comments
 (0)