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

Fix collection count being overwritten by results length when appending results #37

Merged
merged 2 commits into from
Mar 5, 2018

Conversation

lCharlie123l
Copy link
Contributor

@lCharlie123l lCharlie123l commented Mar 5, 2018

When appending results the count property that is returned from the server was being overwritten by the results length. This count property should be the total number of results available from the server rather than the length of the results property

@@ -291,6 +294,31 @@ describe('Collections', () => {
expect(results[1].furLength).toBe(10);
});

it('should default to the results length if no count param is returned from the server onn GET_COLLECTION responses', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

onnnnnnnnnn

@lCharlie123l lCharlie123l merged commit 9110b60 into master Mar 5, 2018
@lCharlie123l lCharlie123l deleted the fix-appending-collections-result-count branch March 5, 2018 09:56
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