Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes DiscoveryViewModelTest.testClearingPages #356

Merged
merged 1 commit into from
Oct 18, 2018

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Oct 17, 2018

how

The clearPages output Emits a list of pages that should be cleared of all their content. which translates to all of the pages but the current one. Since we got rid of the last sort, our indices went from [0,1,2,3,4] to [0,1,2,3]. Doing this.vm.inputs.discoveryPagerAdapterSetPrimaryPage(null, 4) is an illegal condition since position 4 doesn't exist and it will never get "cleared" because it doesn't actually exist.

@eoji eoji requested a review from Rcureton October 18, 2018 14:56
Copy link
Contributor

@Rcureton Rcureton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand now how it is expected to work! Thanks for taking the time to show me 😉

@eoji eoji merged commit 8e1fc95 into rc/most-funded Oct 18, 2018
@eoji eoji deleted the io/fixing-disco-test branch October 18, 2018 14:59
Rcureton pushed a commit that referenced this pull request Oct 18, 2018
* removed most funded and fixed the tabs style

* removed most funded from tests

* fixed broken test

* Fixes testClearingPages (#356)
@eoji
Copy link
Contributor Author

eoji commented Oct 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants