@@ -507,11 +507,11 @@ describe('findMany with filters', () => {
507507 } ) ;
508508} ) ;
509509
510- describe ( 'Date & Point filters' , ( ) => {
510+ describe ( 'Date & Point filters' , ( ) => {
511511 class Meetup extends Entity . Class < Meetup > ( 'Meetup' ) ( {
512- name :Type . String ,
513- when :Type . Date ,
514- location :Type . Point ,
512+ name : Type . String ,
513+ when : Type . Date ,
514+ location : Type . Point ,
515515 } ) { }
516516
517517 const spaceId = '9a4a5a1b-2c3d-4e5f-8a9b-1234567890ab' ;
@@ -520,37 +520,26 @@ describe('Date & Point filters',()=>{
520520 let repo : Repo ;
521521 let handle : DocHandle < Entity . DocumentContent > ;
522522
523- beforeEach ( ( ) => {
523+ beforeEach ( ( ) => {
524524 repo = new Repo ( { } ) ;
525525 const result = repo . findWithProgress < Entity . DocumentContent > ( automergeDocId ) ;
526526 handle = result . handle ;
527527 handle . doneLoading ( ) ;
528- } )
528+ } ) ;
529529
530- it ( 'filters by Date is ' , ( ) => {
531- Entity . create ( handle , Meetup ) ( { name :'A' , when :new Date ( '2024-01-01T00:00:00Z' ) , location :[ 0 , 0 ] } ) ;
530+ it ( 'filters by Date is ' , ( ) => {
531+ Entity . create ( handle , Meetup ) ( { name : 'A' , when : new Date ( '2024-01-01T00:00:00Z' ) , location : [ 0 , 0 ] } ) ;
532532 Entity . create ( handle , Meetup ) ( { name : 'B' , when : new Date ( '2025-01-01T00:00:00Z' ) , location : [ 0 , 0 ] } ) ;
533533
534- const r = Entity . findMany (
535- handle ,
536- Meetup ,
537- { when :{ is :new Date ( '2024-01-01T00:00:00Z' ) } } ,
538- undefined ,
539- ) ;
540- expect ( r . entities . map ( e => e . name ) ) . toEqual ( [ 'A' ] ) ;
534+ const r = Entity . findMany ( handle , Meetup , { when : { is : new Date ( '2024-01-01T00:00:00Z' ) } } , undefined ) ;
535+ expect ( r . entities . map ( ( e ) => e . name ) ) . toEqual ( [ 'A' ] ) ;
541536 } ) ;
542537
543- it ( 'filters by Point is ' , ( ) => {
538+ it ( 'filters by Point is ' , ( ) => {
544539 Entity . create ( handle , Meetup ) ( { name : 'X' , when : new Date ( '2024-01-01T00:00:00Z' ) , location : [ 1 , 2 ] } ) ;
545540 Entity . create ( handle , Meetup ) ( { name : 'Y' , when : new Date ( '2024-01-01T00:00:00Z' ) , location : [ 3 , 4 ] } ) ;
546541
547- const r = Entity . findMany (
548- handle ,
549- Meetup ,
550- { location :{ is :[ 1 , 2 ] } } ,
551- undefined
552- ) ;
553- expect ( r . entities . map ( e => e . name ) ) . toEqual ( [ 'X' ] ) ;
542+ const r = Entity . findMany ( handle , Meetup , { location : { is : [ 1 , 2 ] } } , undefined ) ;
543+ expect ( r . entities . map ( ( e ) => e . name ) ) . toEqual ( [ 'X' ] ) ;
554544 } ) ;
555-
556545} ) ;
0 commit comments