@@ -20,7 +20,6 @@ describe('FindOne Tests', () => {
2020
2121 describe ( 'Default FindOne' , ( ) => {
2222 let entry ;
23- const error = null ;
2423
2524 beforeAll ( async ( ) => {
2625 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -39,7 +38,6 @@ describe('FindOne Tests', () => {
3938 describe ( 'Sorting' , ( ) => {
4039 describe ( 'Ascending' , ( ) => {
4140 let entry ;
42- const error = null ;
4341 const field = 'updated_at' ;
4442
4543 beforeAll ( async ( ) => {
@@ -77,7 +75,6 @@ describe('FindOne Tests', () => {
7775 describe ( 'Comparison' , ( ) => {
7876 describe ( 'lessThan' , ( ) => {
7977 let entry ;
80- const error = null ;
8178 const field = 'num_field' ;
8279 const value = 11 ;
8380
@@ -102,7 +99,6 @@ describe('FindOne Tests', () => {
10299
103100 describe ( 'lessThanOrEqualTo' , ( ) => {
104101 let entry ;
105- const error = null ;
106102 const field = 'num_field' ;
107103 const value = 11 ;
108104
@@ -125,7 +121,6 @@ describe('FindOne Tests', () => {
125121
126122 describe ( 'greaterThan' , ( ) => {
127123 let entry ;
128- const error = null ;
129124 const field = 'num_field' ;
130125 const value = 6 ;
131126
@@ -153,7 +148,6 @@ describe('FindOne Tests', () => {
153148
154149 describe ( 'greaterThanOrEqualTo' , ( ) => {
155150 let entry ;
156- const error = null ;
157151 const field = 'num_field' ;
158152 const value = 11 ;
159153
@@ -181,7 +175,6 @@ describe('FindOne Tests', () => {
181175
182176 describe ( 'notEqualTo' , ( ) => {
183177 let entry ;
184- const error = null ;
185178 const field = 'num_field' ;
186179 const value = 6 ;
187180
@@ -212,7 +205,6 @@ describe('FindOne Tests', () => {
212205 describe ( 'Array/Subset' , ( ) => {
213206 describe ( 'containedIn' , ( ) => {
214207 let entry ;
215- const error = null ;
216208 const _in = [ 'source1' , 'source2' ] ;
217209
218210 beforeAll ( async ( ) => {
@@ -234,7 +226,6 @@ describe('FindOne Tests', () => {
234226
235227 describe ( 'notContainedIn' , ( ) => {
236228 let entry ;
237- const error = null ;
238229 const _in = [ 'source1' ] ;
239230
240231 beforeAll ( async ( ) => {
@@ -278,7 +269,6 @@ describe('FindOne Tests', () => {
278269 describe ( 'Element Existence' , ( ) => {
279270 describe ( 'exists' , ( ) => {
280271 let entry ;
281- const error = null ;
282272 const queryField = 'boolean' ;
283273
284274 beforeAll ( async ( ) => {
@@ -300,7 +290,6 @@ describe('FindOne Tests', () => {
300290
301291 describe ( 'notExists' , ( ) => {
302292 let entry ;
303- const error = null ;
304293 const queryField = 'isspecial' ;
305294
306295 beforeAll ( async ( ) => {
@@ -342,7 +331,6 @@ describe('FindOne Tests', () => {
342331 describe ( 'skip' , ( ) => {
343332 let allEntries ;
344333 let skippedEntry ;
345- const error = null ;
346334
347335 beforeAll ( async ( ) => {
348336 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -365,7 +353,6 @@ describe('FindOne Tests', () => {
365353 describe ( 'Logical Operations' , ( ) => {
366354 describe ( 'OR Query Objects' , ( ) => {
367355 let entry ;
368- const error = null ;
369356
370357 beforeAll ( async ( ) => {
371358 const Query1 = Stack . ContentType ( contentTypes . source )
@@ -389,7 +376,6 @@ describe('FindOne Tests', () => {
389376
390377 describe ( 'AND Query Objects' , ( ) => {
391378 let entry ;
392- const error = null ;
393379
394380 beforeAll ( async ( ) => {
395381 const Query1 = Stack . ContentType ( contentTypes . source )
@@ -413,7 +399,6 @@ describe('FindOne Tests', () => {
413399
414400 describe ( 'Raw Query' , ( ) => {
415401 let entry ;
416- const error = null ;
417402
418403 beforeAll ( async ( ) => {
419404 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -441,7 +426,6 @@ describe('FindOne Tests', () => {
441426
442427 describe ( 'Tags' , ( ) => {
443428 let entry ;
444- const error = null ;
445429 const tags = [ 'tag1' , 'tag2' ] ;
446430
447431 beforeAll ( async ( ) => {
@@ -463,7 +447,6 @@ describe('FindOne Tests', () => {
463447
464448 describe ( 'Search' , ( ) => {
465449 let entry ;
466- const error = null ;
467450
468451 beforeAll ( async ( ) => {
469452 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -480,7 +463,6 @@ describe('FindOne Tests', () => {
480463
481464 describe ( 'Regex' , ( ) => {
482465 let entry ;
483- const error = null ;
484466 const field = 'title' ;
485467 const regex = {
486468 pattern : '^source' ,
@@ -510,7 +492,6 @@ describe('FindOne Tests', () => {
510492 describe ( 'Localization' , ( ) => {
511493 describe ( 'Without Fallback' , ( ) => {
512494 let entry ;
513- const error = null ;
514495 const _in = [ 'ja-jp' ] ;
515496
516497 beforeAll ( async ( ) => {
@@ -532,7 +513,6 @@ describe('FindOne Tests', () => {
532513
533514 describe ( 'With Fallback' , ( ) => {
534515 let entry ;
535- const error = null ;
536516 const _in = [ 'ja-jp' , 'en-us' ] ;
537517
538518 beforeAll ( async ( ) => {
@@ -556,7 +536,6 @@ describe('FindOne Tests', () => {
556536 describe ( 'Including References' , ( ) => {
557537 describe ( 'includeReference - String' , ( ) => {
558538 let entry ;
559- const error = null ;
560539
561540 beforeAll ( async ( ) => {
562541 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -576,7 +555,6 @@ describe('FindOne Tests', () => {
576555
577556 describe ( 'includeReference - Array' , ( ) => {
578557 let entry ;
579- const error = null ;
580558
581559 beforeAll ( async ( ) => {
582560 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -603,7 +581,6 @@ describe('FindOne Tests', () => {
603581
604582 describe ( 'Including Schema' , ( ) => {
605583 let entry ;
606- const error = null ;
607584
608585 beforeAll ( async ( ) => {
609586 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -618,7 +595,6 @@ describe('FindOne Tests', () => {
618595 describe ( 'Including ContentType' , ( ) => {
619596 let entry ;
620597 let contentType ;
621- const error = null ;
622598
623599 beforeAll ( async ( ) => {
624600 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -642,7 +618,6 @@ describe('FindOne Tests', () => {
642618 describe ( 'Including Schema and ContentType' , ( ) => {
643619 let entry ;
644620 let contentType ;
645- const error = null ;
646621
647622 beforeAll ( async ( ) => {
648623 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -667,7 +642,6 @@ describe('FindOne Tests', () => {
667642 describe ( 'Field Selection - Only' , ( ) => {
668643 describe ( 'only - Single String Parameter' , ( ) => {
669644 let entry ;
670- const error = null ;
671645
672646 beforeAll ( async ( ) => {
673647 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -687,7 +661,6 @@ describe('FindOne Tests', () => {
687661
688662 describe ( 'only - Multiple String Parameters' , ( ) => {
689663 let entry ;
690- const error = null ;
691664
692665 beforeAll ( async ( ) => {
693666 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -707,7 +680,6 @@ describe('FindOne Tests', () => {
707680
708681 describe ( 'only - Array Parameter' , ( ) => {
709682 let entry ;
710- const error = null ;
711683
712684 beforeAll ( async ( ) => {
713685 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -728,7 +700,6 @@ describe('FindOne Tests', () => {
728700
729701 describe ( 'only - For reference - String' , ( ) => {
730702 let entry ;
731- const error = null ;
732703
733704 beforeAll ( async ( ) => {
734705 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -762,7 +733,6 @@ describe('FindOne Tests', () => {
762733
763734 describe ( 'only - For reference - Array' , ( ) => {
764735 let entry ;
765- const error = null ;
766736
767737 beforeAll ( async ( ) => {
768738 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -802,7 +772,6 @@ describe('FindOne Tests', () => {
802772 describe ( 'Field Selection - Except' , ( ) => {
803773 describe ( 'except - Single String Parameter' , ( ) => {
804774 let entry ;
805- const error = null ;
806775
807776 beforeAll ( async ( ) => {
808777 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -820,7 +789,6 @@ describe('FindOne Tests', () => {
820789
821790 describe ( 'except - Multiple String Parameters' , ( ) => {
822791 let entry ;
823- const error = null ;
824792
825793 beforeAll ( async ( ) => {
826794 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -838,7 +806,6 @@ describe('FindOne Tests', () => {
838806
839807 describe ( 'except - Array of String Parameters' , ( ) => {
840808 let entry ;
841- const error = null ;
842809
843810 beforeAll ( async ( ) => {
844811 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -860,7 +827,6 @@ describe('FindOne Tests', () => {
860827
861828 describe ( 'except - For the reference - String' , ( ) => {
862829 let entry ;
863- const error = null ;
864830
865831 beforeAll ( async ( ) => {
866832 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
@@ -895,7 +861,6 @@ describe('FindOne Tests', () => {
895861
896862 describe ( 'except - For the reference - Array' , ( ) => {
897863 let entry ;
898- const error = null ;
899864
900865 beforeAll ( async ( ) => {
901866 const Query = Stack . ContentType ( contentTypes . source ) . Query ( ) ;
0 commit comments