@@ -18,6 +18,7 @@ import { assert, expect } from 'chai';
1818import { AccountRepository } from '../../src/infrastructure/AccountRepository' ;
1919import { MultisigRepository } from '../../src/infrastructure/MultisigRepository' ;
2020import { NamespaceRepository } from '../../src/infrastructure/NamespaceRepository' ;
21+ import { QueryParams } from '../../src/infrastructure/QueryParams' ;
2122import { Account } from '../../src/model/account/Account' ;
2223import { Address } from '../../src/model/account/Address' ;
2324import { PublicAccount } from '../../src/model/account/PublicAccount' ;
@@ -31,6 +32,7 @@ import { AggregateTransaction } from '../../src/model/transaction/AggregateTrans
3132import { Deadline } from '../../src/model/transaction/Deadline' ;
3233import { MultisigAccountModificationTransaction } from '../../src/model/transaction/MultisigAccountModificationTransaction' ;
3334import { NamespaceRegistrationTransaction } from '../../src/model/transaction/NamespaceRegistrationTransaction' ;
35+ import { TransactionType } from '../../src/model/transaction/TransactionType' ;
3436import { TransferTransaction } from '../../src/model/transaction/TransferTransaction' ;
3537import { UInt64 } from '../../src/model/UInt64' ;
3638import { IntegrationTestHelper } from './IntegrationTestHelper' ;
@@ -238,6 +240,17 @@ describe('AccountHttp', () => {
238240 } ) ;
239241 } ) ;
240242
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+
241254 describe ( 'transactions' , ( ) => {
242255 it ( 'should call transactions successfully' , ( done ) => {
243256 accountRepository . getAccountTransactions ( publicAccount . address ) . subscribe ( ( transactions ) => {
0 commit comments