Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Load 20 transaction instead 10 - Closes #402 #408

Merged
merged 2 commits into from
Jun 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/transactions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Feature: Transactions tab
Scenario: should show transactions
Given I'm logged in as "genesis"
When I click tab number 1
Then I should see table with 10 lines
Then I should see table with 20 lines
2 changes: 1 addition & 1 deletion src/components/transactions/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ app.component('transactions', {
this.loaded = false;
}

const limit = Math.max(10, this.transactions.length + (showMore ? 10 : 0));
const limit = Math.max(20, this.transactions.length + (showMore ? 20 : 0));
return this.loadTransactions(limit);
}

Expand Down
4 changes: 2 additions & 2 deletions test/components/transactions/transactions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ describe('transactions component controller', () => {
expect(controller.loaded).to.equal(undefined);
});

it('calls accountApi.transactions.get(account.get().address, limit) with limit = 10 by default', () => {
mock.expects('get').withArgs(account.get().address, 10).returns(transactionsDeferred.promise);
it('calls accountApi.transactions.get(account.get().address, limit) with limit = 20 by default', () => {
mock.expects('get').withArgs(account.get().address, 20).returns(transactionsDeferred.promise);
controller.update();
transactionsDeferred.reject();

Expand Down