Skip to content

Commit 5e95c7b

Browse files
authored
Merge pull request #412 from NEMStudios/400-OpenApiGeneratedLibrary
Fixed transaction type query param
2 parents 1c200b3 + 19fb7c5 commit 5e95c7b

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

e2e/infrastructure/AccountHttp.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { assert, expect } from 'chai';
1818
import { AccountRepository } from '../../src/infrastructure/AccountRepository';
1919
import { MultisigRepository } from '../../src/infrastructure/MultisigRepository';
2020
import { NamespaceRepository } from '../../src/infrastructure/NamespaceRepository';
21+
import { QueryParams } from '../../src/infrastructure/QueryParams';
2122
import { Account } from '../../src/model/account/Account';
2223
import { Address } from '../../src/model/account/Address';
2324
import { PublicAccount } from '../../src/model/account/PublicAccount';
@@ -31,6 +32,7 @@ import { AggregateTransaction } from '../../src/model/transaction/AggregateTrans
3132
import { Deadline } from '../../src/model/transaction/Deadline';
3233
import { MultisigAccountModificationTransaction } from '../../src/model/transaction/MultisigAccountModificationTransaction';
3334
import { NamespaceRegistrationTransaction } from '../../src/model/transaction/NamespaceRegistrationTransaction';
35+
import { TransactionType } from '../../src/model/transaction/TransactionType';
3436
import { TransferTransaction } from '../../src/model/transaction/TransferTransaction';
3537
import { UInt64 } from '../../src/model/UInt64';
3638
import { 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) => {

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"dependencies": {
6060
"bluebird": "^3.5.5",
6161
"catbuffer": "0.0.6-SNAPSHOT",
62-
"nem2-sdk-openapi-typescript-node-client": "0.7.2-0.6",
62+
"nem2-sdk-openapi-typescript-node-client": "0.7.2-0.6.1",
6363
"crypto-js": "^3.1.9-1",
6464
"js-joda": "^1.6.2",
6565
"js-sha256": "^0.9.0",

0 commit comments

Comments
 (0)