@@ -285,7 +285,7 @@ describe('Listener', () => {
285285 ) ;
286286 const transferTransactionDTO = transferTransaction . toJSON ( ) ;
287287 const hash = 'abc' ;
288- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
288+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
289289
290290 const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMultisigMock , multisigRepo ) ;
291291 listener . open ( ) ;
@@ -315,7 +315,7 @@ describe('Listener', () => {
315315 ) ;
316316 const transferTransactionDTO = transferTransaction . toJSON ( ) ;
317317 const hash = 'abc' ;
318- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
318+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
319319
320320 const reportedTransactions : Transaction [ ] = [ ] ;
321321 const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMockAlias ) ;
@@ -334,7 +334,10 @@ describe('Listener', () => {
334334 listener . handleMessage (
335335 {
336336 topic : name . toString ( ) ,
337- data : { meta : { height : '2' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
337+ data : {
338+ meta : { height : '2' , hash : 'new hash' , timestamp : '2' , feeMultiplier : 1 } ,
339+ transaction : transferTransactionDTO . transaction ,
340+ } ,
338341 } ,
339342 null ,
340343 ) ;
@@ -360,7 +363,7 @@ describe('Listener', () => {
360363 const transferTransactionDTO = transferTransaction . toJSON ( ) ;
361364 const hash = 'abc' ;
362365 const hash2 = 'abc2' ;
363- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
366+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
364367
365368 const reportedTransactions : Transaction [ ] = [ ] ;
366369 const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMock ) ;
@@ -379,7 +382,10 @@ describe('Listener', () => {
379382 listener . handleMessage (
380383 {
381384 topic : name . toString ( ) ,
382- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
385+ data : {
386+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
387+ transaction : transferTransactionDTO . transaction ,
388+ } ,
383389 } ,
384390 null ,
385391 ) ;
@@ -399,7 +405,7 @@ describe('Listener', () => {
399405 ) ;
400406 const transferTransactionDTO = transferTransaction . toJSON ( ) ;
401407 const hash = 'abc' ;
402- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
408+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
403409
404410 const reportedTransactions : Transaction [ ] = [ ] ;
405411 const listener = new Listener ( 'http://localhost:3000' , namespaceRepo , WebSocketMockAlias ) ;
@@ -418,7 +424,10 @@ describe('Listener', () => {
418424 listener . handleMessage (
419425 {
420426 topic : name . toString ( ) ,
421- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
427+ data : {
428+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
429+ transaction : transferTransactionDTO . transaction ,
430+ } ,
422431 } ,
423432 null ,
424433 ) ;
@@ -438,7 +447,7 @@ describe('Listener', () => {
438447 ) ;
439448 const transferTransactionDTO = transferTransaction . toJSON ( ) ;
440449 const hash = 'abc' ;
441- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
450+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
442451
443452 const reportedTransactions : Transaction [ ] = [ ] ;
444453
@@ -458,7 +467,10 @@ describe('Listener', () => {
458467 listener . handleMessage (
459468 {
460469 topic : name . toString ( ) ,
461- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
470+ data : {
471+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
472+ transaction : transferTransactionDTO . transaction ,
473+ } ,
462474 } ,
463475 null ,
464476 ) ;
@@ -487,7 +499,7 @@ describe('Listener', () => {
487499 ) ;
488500 const transferTransactionDTO = transferTransaction . toJSON ( ) ;
489501 const hash = 'abc' ;
490- transferTransactionDTO . meta = { height : '1' , hash : hash } ;
502+ transferTransactionDTO . meta = { height : '1' , hash : hash , timestamp : '0' , feeMultiplier : 0 } ;
491503
492504 const reportedTransactions : Transaction [ ] = [ ] ;
493505
@@ -507,7 +519,10 @@ describe('Listener', () => {
507519 listener . handleMessage (
508520 {
509521 topic : name . toString ( ) ,
510- data : { meta : { height : '1' , hash : 'new hash' } , transaction : transferTransactionDTO . transaction } ,
522+ data : {
523+ meta : { height : '1' , hash : 'new hash' , timestamp : '1' , feeMultiplier : 1 } ,
524+ transaction : transferTransactionDTO . transaction ,
525+ } ,
511526 } ,
512527 null ,
513528 ) ;
0 commit comments