{"action":"created","comment":{"url":"https://api.github.com/repos/andela/activo-web/pulls/comments/200593370","pull_request_review_id":134939174,"id":200593370,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDU5MzM3MA==","diff_hunk":"@@ -5,17 +5,35 @@ import * as React from 'react';\n import { shallow } from 'enzyme';\n \n // components\n-import FilterDropdown from './';\n+import { FilterDropdown } from './';\n \n describe('FilterDropdown component', () => {\n-  it('should render the filter dropdown', () => {\n-    const props = {\n-      closeFilterDropdown: jest.fn(),\n-    };\n \n+  const props = {\n+    closeFilterDropdown: jest.fn(),\n+    searchTerm: '',\n+    searchAssets: jest.fn(),\n+    handleSearchTermChange: jest.fn(),\n+    getAssetsInitialData: jest.fn(),\n+    categoryId: '',\n+  };\n+\n+  it('should render the filter dropdown', () => {\n     const wrapper = shallow(<FilterDropdown { ...props }/>);\n \n     expect(wrapper).toMatchSnapshot();\n     expect(wrapper.find('div.filter-dropdown').length).toBe(1);\n   });\n+\n+  it('should trigger realtime search when a value is entered', () => {\n+    const searchTerm = 'yaba';\n+    const wrapper = shallow(<FilterDropdown { ...props } />);\n+    wrapper.find('.search-input').simulate('change', { target: { value: searchTerm } });\n+  });\n+\n+  it('should display initial table data when searchTerm is empty', () => {","path":"src/components/FilterDropdown/FilterDropdown.test.tsx","position":35,"original_position":35,"commit_id":"8029cb0d5e66a7cd323cba2764adcd66a98d668b","original_commit_id":"8029cb0d5e66a7cd323cba2764adcd66a98d668b","user":{"login":"sccofield","id":12601490,"node_id":"MDQ6VXNlcjEyNjAxNDkw","avatar_url":"https://avatars0.githubusercontent.com/u/12601490?v=4","gravatar_id":"","url":"https://api.github.com/users/sccofield","html_url":"https://github.com/sccofield","followers_url":"https://api.github.com/users/sccofield/followers","following_url":"https://api.github.com/users/sccofield/following{/other_user}","gists_url":"https://api.github.com/users/sccofield/gists{/gist_id}","starred_url":"https://api.github.com/users/sccofield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sccofield/subscriptions","organizations_url":"https://api.github.com/users/sccofield/orgs","repos_url":"https://api.github.com/users/sccofield/repos","events_url":"https://api.github.com/users/sccofield/events{/privacy}","received_events_url":"https://api.github.com/users/sccofield/received_events","type":"User","site_admin":false},"body":"Same here no assertion.","created_at":"2018-07-06T09:05:33Z","updated_at":"2018-07-06T09:31:20Z","html_url":"https://github.com/andela/activo-web/pull/46#discussion_r200593370","pull_request_url":"https://api.github.com/repos/andela/activo-web/pulls/46","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/andela/activo-web/pulls/comments/200593370"},"html":{"href":"https://github.com/andela/activo-web/pull/46#discussion_r200593370"},"pull_request":{"href":"https://api.github.com/repos/andela/activo-web/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/andela/activo-web/pulls/46","id":199340941,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MzQwOTQx","html_url":"https://github.com/andela/activo-web/pull/46","diff_url":"https://github.com/andela/activo-web/pull/46.diff","patch_url":"https://github.com/andela/activo-web/pull/46.patch","issue_url":"https://api.github.com/repos/andela/activo-web/issues/46","number":46,"state":"open","locked":false,"title":"#158286774 User should be able to search assets in a single category ","user":{"login":"Dammyy","id":32909231,"node_id":"MDQ6VXNlcjMyOTA5MjMx","avatar_url":"https://avatars3.githubusercontent.com/u/32909231?v=4","gravatar_id":"","url":"https://api.github.com/users/Dammyy","html_url":"https://github.com/Dammyy","followers_url":"https://api.github.com/users/Dammyy/followers","following_url":"https://api.github.com/users/Dammyy/following{/other_user}","gists_url":"https://api.github.com/users/Dammyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Dammyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dammyy/subscriptions","organizations_url":"https://api.github.com/users/Dammyy/orgs","repos_url":"https://api.github.com/users/Dammyy/repos","events_url":"https://api.github.com/users/Dammyy/events{/privacy}","received_events_url":"https://api.github.com/users/Dammyy/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\n\r\nUser can search assets in a single category \r\n\r\n**Description of Task to be completed?**\r\n\r\nSearch assets by entering  a string into the single category filter dropdown search box\r\n\r\n**How should this be manually tested?**\r\n\r\nClick on the filter button on the single category page\r\nEnter a string into the search box\r\nThe table is updated in realtime with assets containing a match to the searched string\r\n\r\n**Any background context you want to provide?**\r\n\r\nnone\r\n\r\n**What are the relevant pivotal tracker stories?**\r\n\r\n[#158286774](https://www.pivotaltracker.com/story/show/158286774)\r\n\r\n**Screenshots (if appropriate)**\r\n\r\n<img width=\"1440\" alt=\"screen shot 2018-07-05 at 2 25 49 am\" src=\"https://user-images.githubusercontent.com/32909231/42297937-d2eba276-7ffa-11e8-8137-1efe614c0d9e.png\">\r\n\r\n\r\n**Questions:**\r\n\r\nnone\r\n","created_at":"2018-07-05T01:28:21Z","updated_at":"2018-07-06T09:31:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b657023880df63f051d93335281b230eef76c579","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":953906751,"node_id":"MDU6TGFiZWw5NTM5MDY3NTE=","url":"https://api.github.com/repos/andela/activo-web/labels/Finished","name":"Finished","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/activo-web/pulls/46/commits","review_comments_url":"https://api.github.com/repos/andela/activo-web/pulls/46/comments","review_comment_url":"https://api.github.com/repos/andela/activo-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/activo-web/issues/46/comments","statuses_url":"https://api.github.com/repos/andela/activo-web/statuses/8029cb0d5e66a7cd323cba2764adcd66a98d668b","head":{"label":"andela:ft-search-assets-158286774","ref":"ft-search-assets-158286774","sha":"8029cb0d5e66a7cd323cba2764adcd66a98d668b","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":132578458,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1Nzg0NTg=","name":"activo-web","full_name":"andela/activo-web","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/activo-web","description":"Web client for the activo application","fork":false,"url":"https://api.github.com/repos/andela/activo-web","forks_url":"https://api.github.com/repos/andela/activo-web/forks","keys_url":"https://api.github.com/repos/andela/activo-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-web/teams","hooks_url":"https://api.github.com/repos/andela/activo-web/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-web/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-web/events","assignees_url":"https://api.github.com/repos/andela/activo-web/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-web/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-web/tags","blobs_url":"https://api.github.com/repos/andela/activo-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-web/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-web/languages","stargazers_url":"https://api.github.com/repos/andela/activo-web/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-web/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-web/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-web/subscription","commits_url":"https://api.github.com/repos/andela/activo-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-web/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-web/merges","archive_url":"https://api.github.com/repos/andela/activo-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-web/downloads","issues_url":"https://api.github.com/repos/andela/activo-web/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-web/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-web/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-web/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-web/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-web/deployments","created_at":"2018-05-08T08:28:37Z","updated_at":"2018-07-05T08:46:33Z","pushed_at":"2018-07-05T18:39:13Z","git_url":"git://github.com/andela/activo-web.git","ssh_url":"git@github.com:andela/activo-web.git","clone_url":"https://github.com/andela/activo-web.git","svn_url":"https://github.com/andela/activo-web","homepage":"http://activo-staging.andela.com","size":2887,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"ef25f3e982da35478ebd43085cffb8b7c8bc44e3","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":132578458,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1Nzg0NTg=","name":"activo-web","full_name":"andela/activo-web","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/activo-web","description":"Web client for the activo application","fork":false,"url":"https://api.github.com/repos/andela/activo-web","forks_url":"https://api.github.com/repos/andela/activo-web/forks","keys_url":"https://api.github.com/repos/andela/activo-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-web/teams","hooks_url":"https://api.github.com/repos/andela/activo-web/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-web/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-web/events","assignees_url":"https://api.github.com/repos/andela/activo-web/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-web/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-web/tags","blobs_url":"https://api.github.com/repos/andela/activo-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-web/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-web/languages","stargazers_url":"https://api.github.com/repos/andela/activo-web/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-web/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-web/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-web/subscription","commits_url":"https://api.github.com/repos/andela/activo-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-web/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-web/merges","archive_url":"https://api.github.com/repos/andela/activo-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-web/downloads","issues_url":"https://api.github.com/repos/andela/activo-web/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-web/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-web/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-web/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-web/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-web/deployments","created_at":"2018-05-08T08:28:37Z","updated_at":"2018-07-05T08:46:33Z","pushed_at":"2018-07-05T18:39:13Z","git_url":"git://github.com/andela/activo-web.git","ssh_url":"git@github.com:andela/activo-web.git","clone_url":"https://github.com/andela/activo-web.git","svn_url":"https://github.com/andela/activo-web","homepage":"http://activo-staging.andela.com","size":2887,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/activo-web/pulls/46"},"html":{"href":"https://github.com/andela/activo-web/pull/46"},"issue":{"href":"https://api.github.com/repos/andela/activo-web/issues/46"},"comments":{"href":"https://api.github.com/repos/andela/activo-web/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/activo-web/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/activo-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/activo-web/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/andela/activo-web/statuses/8029cb0d5e66a7cd323cba2764adcd66a98d668b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sccofield"}}