@@ -20,7 +20,6 @@ describe('FindOne Tests', () => {
20
20
21
21
describe ( 'Default FindOne' , ( ) => {
22
22
let entry ;
23
- const error = null ;
24
23
25
24
beforeAll ( async ( ) => {
26
25
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -39,7 +38,6 @@ describe('FindOne Tests', () => {
39
38
describe ( 'Sorting' , ( ) => {
40
39
describe ( 'Ascending' , ( ) => {
41
40
let entry ;
42
- const error = null ;
43
41
const field = 'updated_at' ;
44
42
45
43
beforeAll ( async ( ) => {
@@ -77,7 +75,6 @@ describe('FindOne Tests', () => {
77
75
describe ( 'Comparison' , ( ) => {
78
76
describe ( 'lessThan' , ( ) => {
79
77
let entry ;
80
- const error = null ;
81
78
const field = 'num_field' ;
82
79
const value = 11 ;
83
80
@@ -102,7 +99,6 @@ describe('FindOne Tests', () => {
102
99
103
100
describe ( 'lessThanOrEqualTo' , ( ) => {
104
101
let entry ;
105
- const error = null ;
106
102
const field = 'num_field' ;
107
103
const value = 11 ;
108
104
@@ -125,7 +121,6 @@ describe('FindOne Tests', () => {
125
121
126
122
describe ( 'greaterThan' , ( ) => {
127
123
let entry ;
128
- const error = null ;
129
124
const field = 'num_field' ;
130
125
const value = 6 ;
131
126
@@ -153,7 +148,6 @@ describe('FindOne Tests', () => {
153
148
154
149
describe ( 'greaterThanOrEqualTo' , ( ) => {
155
150
let entry ;
156
- const error = null ;
157
151
const field = 'num_field' ;
158
152
const value = 11 ;
159
153
@@ -181,7 +175,6 @@ describe('FindOne Tests', () => {
181
175
182
176
describe ( 'notEqualTo' , ( ) => {
183
177
let entry ;
184
- const error = null ;
185
178
const field = 'num_field' ;
186
179
const value = 6 ;
187
180
@@ -212,7 +205,6 @@ describe('FindOne Tests', () => {
212
205
describe ( 'Array/Subset' , ( ) => {
213
206
describe ( 'containedIn' , ( ) => {
214
207
let entry ;
215
- const error = null ;
216
208
const _in = [ 'source1' , 'source2' ] ;
217
209
218
210
beforeAll ( async ( ) => {
@@ -234,7 +226,6 @@ describe('FindOne Tests', () => {
234
226
235
227
describe ( 'notContainedIn' , ( ) => {
236
228
let entry ;
237
- const error = null ;
238
229
const _in = [ 'source1' ] ;
239
230
240
231
beforeAll ( async ( ) => {
@@ -278,7 +269,6 @@ describe('FindOne Tests', () => {
278
269
describe ( 'Element Existence' , ( ) => {
279
270
describe ( 'exists' , ( ) => {
280
271
let entry ;
281
- const error = null ;
282
272
const queryField = 'boolean' ;
283
273
284
274
beforeAll ( async ( ) => {
@@ -300,7 +290,6 @@ describe('FindOne Tests', () => {
300
290
301
291
describe ( 'notExists' , ( ) => {
302
292
let entry ;
303
- const error = null ;
304
293
const queryField = 'isspecial' ;
305
294
306
295
beforeAll ( async ( ) => {
@@ -342,7 +331,6 @@ describe('FindOne Tests', () => {
342
331
describe ( 'skip' , ( ) => {
343
332
let allEntries ;
344
333
let skippedEntry ;
345
- const error = null ;
346
334
347
335
beforeAll ( async ( ) => {
348
336
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -365,7 +353,6 @@ describe('FindOne Tests', () => {
365
353
describe ( 'Logical Operations' , ( ) => {
366
354
describe ( 'OR Query Objects' , ( ) => {
367
355
let entry ;
368
- const error = null ;
369
356
370
357
beforeAll ( async ( ) => {
371
358
const Query1 = Stack . ContentType ( contentTypes . source )
@@ -389,7 +376,6 @@ describe('FindOne Tests', () => {
389
376
390
377
describe ( 'AND Query Objects' , ( ) => {
391
378
let entry ;
392
- const error = null ;
393
379
394
380
beforeAll ( async ( ) => {
395
381
const Query1 = Stack . ContentType ( contentTypes . source )
@@ -413,7 +399,6 @@ describe('FindOne Tests', () => {
413
399
414
400
describe ( 'Raw Query' , ( ) => {
415
401
let entry ;
416
- const error = null ;
417
402
418
403
beforeAll ( async ( ) => {
419
404
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -441,7 +426,6 @@ describe('FindOne Tests', () => {
441
426
442
427
describe ( 'Tags' , ( ) => {
443
428
let entry ;
444
- const error = null ;
445
429
const tags = [ 'tag1' , 'tag2' ] ;
446
430
447
431
beforeAll ( async ( ) => {
@@ -463,7 +447,6 @@ describe('FindOne Tests', () => {
463
447
464
448
describe ( 'Search' , ( ) => {
465
449
let entry ;
466
- const error = null ;
467
450
468
451
beforeAll ( async ( ) => {
469
452
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -480,7 +463,6 @@ describe('FindOne Tests', () => {
480
463
481
464
describe ( 'Regex' , ( ) => {
482
465
let entry ;
483
- const error = null ;
484
466
const field = 'title' ;
485
467
const regex = {
486
468
pattern : '^source' ,
@@ -510,7 +492,6 @@ describe('FindOne Tests', () => {
510
492
describe ( 'Localization' , ( ) => {
511
493
describe ( 'Without Fallback' , ( ) => {
512
494
let entry ;
513
- const error = null ;
514
495
const _in = [ 'ja-jp' ] ;
515
496
516
497
beforeAll ( async ( ) => {
@@ -532,7 +513,6 @@ describe('FindOne Tests', () => {
532
513
533
514
describe ( 'With Fallback' , ( ) => {
534
515
let entry ;
535
- const error = null ;
536
516
const _in = [ 'ja-jp' , 'en-us' ] ;
537
517
538
518
beforeAll ( async ( ) => {
@@ -556,7 +536,6 @@ describe('FindOne Tests', () => {
556
536
describe ( 'Including References' , ( ) => {
557
537
describe ( 'includeReference - String' , ( ) => {
558
538
let entry ;
559
- const error = null ;
560
539
561
540
beforeAll ( async ( ) => {
562
541
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -576,7 +555,6 @@ describe('FindOne Tests', () => {
576
555
577
556
describe ( 'includeReference - Array' , ( ) => {
578
557
let entry ;
579
- const error = null ;
580
558
581
559
beforeAll ( async ( ) => {
582
560
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -603,7 +581,6 @@ describe('FindOne Tests', () => {
603
581
604
582
describe ( 'Including Schema' , ( ) => {
605
583
let entry ;
606
- const error = null ;
607
584
608
585
beforeAll ( async ( ) => {
609
586
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -618,7 +595,6 @@ describe('FindOne Tests', () => {
618
595
describe ( 'Including ContentType' , ( ) => {
619
596
let entry ;
620
597
let contentType ;
621
- const error = null ;
622
598
623
599
beforeAll ( async ( ) => {
624
600
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -642,7 +618,6 @@ describe('FindOne Tests', () => {
642
618
describe ( 'Including Schema and ContentType' , ( ) => {
643
619
let entry ;
644
620
let contentType ;
645
- const error = null ;
646
621
647
622
beforeAll ( async ( ) => {
648
623
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -667,7 +642,6 @@ describe('FindOne Tests', () => {
667
642
describe ( 'Field Selection - Only' , ( ) => {
668
643
describe ( 'only - Single String Parameter' , ( ) => {
669
644
let entry ;
670
- const error = null ;
671
645
672
646
beforeAll ( async ( ) => {
673
647
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -687,7 +661,6 @@ describe('FindOne Tests', () => {
687
661
688
662
describe ( 'only - Multiple String Parameters' , ( ) => {
689
663
let entry ;
690
- const error = null ;
691
664
692
665
beforeAll ( async ( ) => {
693
666
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -707,7 +680,6 @@ describe('FindOne Tests', () => {
707
680
708
681
describe ( 'only - Array Parameter' , ( ) => {
709
682
let entry ;
710
- const error = null ;
711
683
712
684
beforeAll ( async ( ) => {
713
685
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -728,7 +700,6 @@ describe('FindOne Tests', () => {
728
700
729
701
describe ( 'only - For reference - String' , ( ) => {
730
702
let entry ;
731
- const error = null ;
732
703
733
704
beforeAll ( async ( ) => {
734
705
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -762,7 +733,6 @@ describe('FindOne Tests', () => {
762
733
763
734
describe ( 'only - For reference - Array' , ( ) => {
764
735
let entry ;
765
- const error = null ;
766
736
767
737
beforeAll ( async ( ) => {
768
738
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -802,7 +772,6 @@ describe('FindOne Tests', () => {
802
772
describe ( 'Field Selection - Except' , ( ) => {
803
773
describe ( 'except - Single String Parameter' , ( ) => {
804
774
let entry ;
805
- const error = null ;
806
775
807
776
beforeAll ( async ( ) => {
808
777
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -820,7 +789,6 @@ describe('FindOne Tests', () => {
820
789
821
790
describe ( 'except - Multiple String Parameters' , ( ) => {
822
791
let entry ;
823
- const error = null ;
824
792
825
793
beforeAll ( async ( ) => {
826
794
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -838,7 +806,6 @@ describe('FindOne Tests', () => {
838
806
839
807
describe ( 'except - Array of String Parameters' , ( ) => {
840
808
let entry ;
841
- const error = null ;
842
809
843
810
beforeAll ( async ( ) => {
844
811
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -860,7 +827,6 @@ describe('FindOne Tests', () => {
860
827
861
828
describe ( 'except - For the reference - String' , ( ) => {
862
829
let entry ;
863
- const error = null ;
864
830
865
831
beforeAll ( async ( ) => {
866
832
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -895,7 +861,6 @@ describe('FindOne Tests', () => {
895
861
896
862
describe ( 'except - For the reference - Array' , ( ) => {
897
863
let entry ;
898
- const error = null ;
899
864
900
865
beforeAll ( async ( ) => {
901
866
const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
0 commit comments