File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class Deadline {
2626 /**
2727 * @type {number }
2828 */
29- public static timestampNemesisBlock = 1573426800 ;
29+ public static timestampNemesisBlock = 1573430400 ;
3030
3131 /**
3232 * Deadline value
Original file line number Diff line number Diff line change @@ -51,4 +51,12 @@ describe('Deadline', () => {
5151 expect ( deadline . toDTO ( ) [ 1 ] ) . to . be . equal ( 11 ) ;
5252 } ) ;
5353
54+ it ( 'make sure epochAdjustment is correct' , ( ) => {
55+ const epochAdjustment = new Date ( Deadline . timestampNemesisBlock * 1000 ) ;
56+ expect ( epochAdjustment . getFullYear ( ) ) . to . be . equal ( 2019 ) ;
57+ expect ( epochAdjustment . getMonth ( ) + 1 ) . to . be . equal ( 11 ) ;
58+ expect ( epochAdjustment . getDate ( ) ) . to . be . equal ( 11 ) ;
59+ expect ( epochAdjustment . getHours ( ) ) . to . be . equal ( 0 ) ;
60+ expect ( epochAdjustment . getMinutes ( ) ) . to . be . equal ( 0 ) ;
61+ } ) ;
5462} ) ;
You can’t perform that action at this time.
0 commit comments