@@ -55,13 +55,13 @@ describe('Create a database, schema and insert data', () => {
5555 test ( 'Query Person by name' , async ( ) => {
5656 const queryTemplate = { "name" :"Tom" , "@type" :"Person" }
5757 const result = await client . getDocument ( { query :queryTemplate } ) ;
58- expect ( result ) . toStrictEqual ( { '@id' : 'Child/Tom' , '@type' : 'Child' , age : "10" , name : 'Tom' } ) ;
58+ expect ( result ) . toStrictEqual ( { '@id' : 'Child/Tom' , '@type' : 'Child' , age : 10 , name : 'Tom' } ) ;
5959 } )
6060
6161 test ( 'Query Person by ege' , async ( ) => {
6262 const queryTemplate = { "age" :"40" , "@type" :"Person" }
6363 const result = await client . getDocument ( { query :queryTemplate } ) ;
64- expect ( result ) . toStrictEqual ( { "@id" : "Parent/Tom%20Senior" , "age" :"40" , "name" :"Tom Senior" , "@type" :"Parent" , "has_child" :"Child/Tom" } ) ;
64+ expect ( result ) . toStrictEqual ( { "@id" : "Parent/Tom%20Senior" , "age" :40 , "name" :"Tom Senior" , "@type" :"Parent" , "has_child" :"Child/Tom" } ) ;
6565 } )
6666
6767 const change_request = "change_request02" ;
@@ -77,7 +77,7 @@ describe('Create a database, schema and insert data', () => {
7777 } )
7878
7979 test ( 'Update Child Tom, link Parent' , async ( ) => {
80- const childTom = { '@id' : 'Child/Tom' , '@type' : 'Child' , age : "10" , name : 'Tom' , has_parent :"Parent/Tom%20Senior" }
80+ const childTom = { '@id' : 'Child/Tom' , '@type' : 'Child' , age : 10 , name : 'Tom' , has_parent :"Parent/Tom%20Senior" }
8181 const result = await client . updateDocument ( childTom ) ;
8282 expect ( result ) . toStrictEqual ( [ "terminusdb:///data/Child/Tom" ] ) ;
8383 } )
@@ -113,7 +113,7 @@ describe('Create a database, schema and insert data', () => {
113113 expect ( result ) . toStrictEqual ( {
114114 '@id' : 'Child/Tom' ,
115115 '@type' : 'Child' ,
116- age : "10" ,
116+ age : 10 ,
117117 name : 'Tom' ,
118118 has_parent : 'Parent/Tom%20Senior'
119119 } ) ;
0 commit comments