cognoma / frontend

Frontend for Project Cognoma
http://cognoma.org/
Other
4 stars 22 forks source link

Bugfix/duplicate disease results #156

Closed ramenhog closed 6 years ago

ramenhog commented 6 years ago

Issue Number

153

Purpose/Implementation Notes

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply

Functional tests

Checklist

Put an x in the boxes that apply.

ramenhog commented 6 years ago

@dongbohu @mhuyck I want to write a unit test for this bug, but _filteredSearchResults is a private function. Is there a better way to test this without making it public function?

dongbohu commented 6 years ago

@ramenhog I took a look at the code but couldn't think of a better way.

ramenhog commented 6 years ago

@dongbohu should I make it public just for the sole purpose of testing it?...that feels weird

dongbohu commented 6 years ago

@ramenhog I agree it will be weird to set a function to public solely for testing purpose. Can you just test the public function that calls this one?