@@ -99,7 +99,7 @@ describe('Transaction', () => {
9999 } ) ;
100100 } ) ;
101101
102- describe ( 'replyGiven ' , ( ) => {
102+ describe ( 'reapplyGiven ' , ( ) => {
103103 it ( 'should throw an error if the transaction is announced' , ( ) => {
104104 const transaction = new FakeTransaction ( TransactionType . TRANSFER ,
105105 NetworkType . MIJIN_TEST ,
@@ -111,7 +111,7 @@ describe('Transaction', () => {
111111 new TransactionInfo ( UInt64 . fromUint ( 100 ) , 1 , 'id_hash' , 'hash' , 'hash' ) ,
112112 ) ;
113113 expect ( ( ) => {
114- transaction . replyGiven ( Deadline . create ( ) ) ;
114+ transaction . reapplyGiven ( Deadline . create ( ) ) ;
115115 } ) . to . throws ( 'an Announced transaction can\'t be modified' ) ;
116116 } ) ;
117117 it ( 'should return a new transaction' , ( ) => {
@@ -124,7 +124,7 @@ describe('Transaction', () => {
124124 undefined ,
125125 ) ;
126126
127- const newTransaction = transaction . replyGiven ( Deadline . create ( ) ) ;
127+ const newTransaction = transaction . reapplyGiven ( Deadline . create ( ) ) ;
128128 expect ( newTransaction ) . to . not . equal ( transaction ) ;
129129 } ) ;
130130 it ( 'should overide deadline properly' , ( ) => {
@@ -138,7 +138,7 @@ describe('Transaction', () => {
138138 ) ;
139139
140140 const newDeadline = Deadline . create ( 3 ) ;
141- const newTransaction = transaction . replyGiven ( newDeadline ) ;
141+ const newTransaction = transaction . reapplyGiven ( newDeadline ) ;
142142 const equal = newTransaction . deadline . value . equals ( transaction . deadline . value ) ;
143143 const after = newTransaction . deadline . value . isAfter ( transaction . deadline . value ) ;
144144 expect ( newTransaction . deadline ) . to . be . equal ( newDeadline ) ;
0 commit comments