@@ -13,7 +13,7 @@ describe('collapseKeys', () => {
1313 'b.d' : 'hi' ,
1414 'b.e.f' : false ,
1515 } )
16- assert . deepEqual ( collapseKeys ( { a : [ 1 , 2 , 3 , { b : 4 , c : [ ] , d : null , e : undefined } ] } ) , {
16+ assert . deepEqual ( collapseKeys ( { a : [ 1 , 2 , 3 , { b : 4 , c : [ ] , d : null , e : undefined } ] } ) , {
1717 'a.0' : 1 ,
1818 'a.1' : 2 ,
1919 'a.2' : 3 ,
@@ -42,13 +42,13 @@ describe('getFilteredSubs', () => {
4242 const subscription = {
4343 id : '1' ,
4444 topic,
45- filter : { } ,
45+ filter : { } ,
4646 subscriptionId : '1' ,
47- subscription : { } as any ,
47+ subscription : { } as any ,
4848 connectionId : 'abcd' ,
4949 connectionInitPayload : { } ,
5050 requestContext : { } as any ,
51- ttl : Date . now ( ) + 100000 ,
51+ ttl : Math . floor ( Date . now ( ) / 1000 ) + 100000 ,
5252 createdAt : Date . now ( ) ,
5353 }
5454
@@ -64,11 +64,11 @@ describe('getFilteredSubs', () => {
6464 topic,
6565 filter : { language : 'en' } ,
6666 subscriptionId : '2' ,
67- subscription : { } as any ,
67+ subscription : { } as any ,
6868 connectionId : 'abcd' ,
6969 connectionInitPayload : { } ,
7070 requestContext : { } as any ,
71- ttl : Date . now ( ) + 100000 ,
71+ ttl : Math . floor ( Date . now ( ) / 1000 ) + 100000 ,
7272 createdAt : Date . now ( ) ,
7373 }
7474
@@ -86,11 +86,11 @@ describe('getFilteredSubs', () => {
8686 topic,
8787 filter : { language : 'en ' } ,
8888 subscriptionId : '12345' ,
89- subscription : { } as any ,
89+ subscription : { } as any ,
9090 connectionId : '1234' ,
9191 connectionInitPayload : { } ,
9292 requestContext : { } as any ,
93- ttl : Date . now ( ) + 100000 ,
93+ ttl : Math . floor ( Date . now ( ) / 1000 ) + 100000 ,
9494 createdAt : Date . now ( ) ,
9595 }
9696
0 commit comments