@@ -18,6 +18,7 @@ import { assert, expect } from 'chai';
18
18
import { AccountRepository } from '../../src/infrastructure/AccountRepository' ;
19
19
import { MultisigRepository } from '../../src/infrastructure/MultisigRepository' ;
20
20
import { NamespaceRepository } from '../../src/infrastructure/NamespaceRepository' ;
21
+ import { QueryParams } from '../../src/infrastructure/QueryParams' ;
21
22
import { Account } from '../../src/model/account/Account' ;
22
23
import { Address } from '../../src/model/account/Address' ;
23
24
import { PublicAccount } from '../../src/model/account/PublicAccount' ;
@@ -31,6 +32,7 @@ import { AggregateTransaction } from '../../src/model/transaction/AggregateTrans
31
32
import { Deadline } from '../../src/model/transaction/Deadline' ;
32
33
import { MultisigAccountModificationTransaction } from '../../src/model/transaction/MultisigAccountModificationTransaction' ;
33
34
import { NamespaceRegistrationTransaction } from '../../src/model/transaction/NamespaceRegistrationTransaction' ;
35
+ import { TransactionType } from '../../src/model/transaction/TransactionType' ;
34
36
import { TransferTransaction } from '../../src/model/transaction/TransferTransaction' ;
35
37
import { UInt64 } from '../../src/model/UInt64' ;
36
38
import { IntegrationTestHelper } from './IntegrationTestHelper' ;
@@ -238,6 +240,17 @@ describe('AccountHttp', () => {
238
240
} ) ;
239
241
} ) ;
240
242
243
+ describe ( 'transactions' , ( ) => {
244
+ it ( 'should call transactions successfully by type' , async ( ) => {
245
+ const transactions = await accountRepository . getAccountTransactions ( publicAccount . address , { transactionType : TransactionType . TRANSFER } as QueryParams ) . toPromise ( ) ;
246
+
247
+ expect ( transactions . length ) . to . be . greaterThan ( 0 ) ;
248
+ transactions . forEach ( t => {
249
+ expect ( t . type ) . to . be . eq ( TransactionType . TRANSFER ) ;
250
+ } ) ;
251
+ } ) ;
252
+ } ) ;
253
+
241
254
describe ( 'transactions' , ( ) => {
242
255
it ( 'should call transactions successfully' , ( done ) => {
243
256
accountRepository . getAccountTransactions ( publicAccount . address ) . subscribe ( ( transactions ) => {
0 commit comments