@@ -31,13 +31,13 @@ import { MultisigCosignatoryModification } from '../../src/model/transaction/Mul
3131import { MultisigCosignatoryModificationType } from '../../src/model/transaction/MultisigCosignatoryModificationType' ;
3232import { PlainMessage } from '../../src/model/transaction/PlainMessage' ;
3333import { TransferTransaction } from '../../src/model/transaction/TransferTransaction' ;
34- import { AggregatedTransactionService } from '../../src/service/AggregatedTransactionService ' ;
34+ import { AggregateTransactionService } from '../../src/service/AggregateTransactionService ' ;
3535
3636/**
3737 * For multi level multisig scenario visit: https://github.com/nemtech/nem2-docs/issues/10
3838 */
39- describe ( 'AggregatedTransactionService ' , ( ) => {
40- let aggregatedTransactionService : AggregatedTransactionService ;
39+ describe ( 'AggregateTransactionService ' , ( ) => {
40+ let aggregateTransactionService : AggregateTransactionService ;
4141
4242 /**
4343 * Multisig2 Account: SBROWP-7YMG2M-K45RO6-Q7ZPK7-G7GXWQ-JK5VNQ-OSUX
@@ -95,7 +95,7 @@ describe('AggregatedTransactionService', () => {
9595 . thenReturn ( observableOf ( givenAccount3Info ( ) ) ) ;
9696
9797 const accountHttp = instance ( mockedAccountHttp ) ;
98- aggregatedTransactionService = new AggregatedTransactionService ( accountHttp ) ;
98+ aggregateTransactionService = new AggregateTransactionService ( accountHttp ) ;
9999 } ) ;
100100
101101 it ( 'should return isComplete: true for aggregated complete transaction - 2 levels Multisig' , ( ) => {
@@ -122,7 +122,7 @@ describe('AggregatedTransactionService', () => {
122122 [ ] ) ;
123123
124124 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account1 , [ account2 ] ) ;
125- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
125+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
126126 expect ( isComplete ) . to . be . true ;
127127 } ) ;
128128 } ) ;
@@ -151,7 +151,7 @@ describe('AggregatedTransactionService', () => {
151151 [ ] ) ;
152152
153153 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account1 , [ ] ) ;
154- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
154+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
155155 expect ( isComplete ) . to . be . false ;
156156 } ) ;
157157 } ) ;
@@ -180,7 +180,7 @@ describe('AggregatedTransactionService', () => {
180180 [ ] ) ;
181181
182182 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account1 , [ account4 ] ) ;
183- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
183+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
184184 expect ( isComplete ) . to . be . false ;
185185 } ) ;
186186 } ) ;
@@ -218,7 +218,7 @@ describe('AggregatedTransactionService', () => {
218218 NetworkType . MIJIN_TEST ,
219219 [ ] ) ;
220220 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account1 , [ account4 ] ) ;
221- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
221+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
222222 expect ( isComplete ) . to . be . false ;
223223 } ) ;
224224 } ) ;
@@ -256,7 +256,7 @@ describe('AggregatedTransactionService', () => {
256256 NetworkType . MIJIN_TEST ,
257257 [ ] ) ;
258258 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account1 , [ account4 , account2 ] ) ;
259- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
259+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
260260 expect ( isComplete ) . to . be . true ;
261261 } ) ;
262262 } ) ;
@@ -285,7 +285,7 @@ describe('AggregatedTransactionService', () => {
285285 NetworkType . MIJIN_TEST ,
286286 [ ] ) ;
287287 const signedTransaction = aggregateTransaction . signWith ( account2 ) ;
288- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
288+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
289289 expect ( isComplete ) . to . be . true ;
290290 } ) ;
291291 } ) ;
@@ -312,7 +312,7 @@ describe('AggregatedTransactionService', () => {
312312 [ ] ) ;
313313
314314 const signedTransaction = aggregateTransaction . signWith ( account1 ) ;
315- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
315+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
316316 expect ( isComplete ) . to . be . false ;
317317 } ) ;
318318 } ) ;
@@ -340,7 +340,7 @@ describe('AggregatedTransactionService', () => {
340340 [ ] ) ;
341341
342342 const signedTransaction = aggregateTransaction . signWith ( account4 ) ;
343- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
343+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
344344 expect ( isComplete ) . to . be . true ;
345345 } ) ;
346346 } ) ;
@@ -383,7 +383,7 @@ describe('AggregatedTransactionService', () => {
383383 [ ] ) ;
384384
385385 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account1 , [ account4 ] ) ;
386- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
386+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
387387 expect ( isComplete ) . to . be . true ;
388388 } ) ;
389389 } ) ;
@@ -425,7 +425,7 @@ describe('AggregatedTransactionService', () => {
425425 [ ] ) ;
426426
427427 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account1 , [ ] ) ;
428- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
428+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
429429 expect ( isComplete ) . to . be . false ;
430430 } ) ;
431431 } ) ;
@@ -451,7 +451,7 @@ describe('AggregatedTransactionService', () => {
451451 [ ] ) ;
452452
453453 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account2 , [ account3 ] ) ;
454- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
454+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
455455 expect ( isComplete ) . to . be . true ;
456456 } ) ;
457457 } ) ;
@@ -477,7 +477,7 @@ describe('AggregatedTransactionService', () => {
477477 [ ] ) ;
478478
479479 const signedTransaction = aggregateTransaction . signTransactionWithCosignatories ( account2 , [ ] ) ;
480- aggregatedTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
480+ aggregateTransactionService . isComplete ( signedTransaction ) . toPromise ( ) . then ( ( isComplete ) => {
481481 expect ( isComplete ) . to . be . false ;
482482 } ) ;
483483 } ) ;
0 commit comments