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 issues with facet values count update #466

Merged
merged 3 commits into from
May 19, 2017
Merged

Fix issues with facet values count update #466

merged 3 commits into from
May 19, 2017

Conversation

olamothe
Copy link
Member

We only need to return a zero occurrences when merging two list of facet values when the old list has no occurences, otherwise we should keep the old count.

Deploy

@olamothe olamothe requested a review from dms1lva May 17, 2017 19:27
expect(oldValues.get('@token9').occurrences).toEqual(10);
});

it('should set occurrences to 0 in old values if a new values does not exist in old values', ()=> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you meant "should set occurences to 10". Also, "if a new value".

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 81.799% when pulling eeaf2ec on JSUI-1336 into b02b681 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 81.799% when pulling eeaf2ec on JSUI-1336 into b02b681 on master.

@olamothe olamothe merged commit c5b7caa into master May 19, 2017
@olamothe olamothe deleted the JSUI-1336 branch May 19, 2017 21:01
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.

3 participants