{"action":"created","comment":{"url":"https://api.github.com/repos/cfpb/owning-a-home/pulls/comments/37558301","id":37558301,"diff_hunk":"@@ -38,6 +38,40 @@ describe('Dropdown utils', function() {\n     expect($('option')).to.have.length(4);\n   });\n \n+  it('should not add options with same values', function() {\n+    dd('foo').addOption({label: 'first', value: 'bar'});\n+    dd('foo').addOption({label: 'second', value: 'bar'});\n+    expect($('option')).to.have.length(2);\n+  });\n+\n+  it('should select the option when values.select', function() {\n+    dd('foo').addOption({label: 'Foo', value: 'BAR', select: 1});\n+    expect( $('#foo')[0].selectedIndex ).to.equal(1);\n+  });\n+\n+  it('should create option with value/name of \"\"', function() {\n+    dd('foo').addOption(null);\n+    $('#foo')[0].selectedIndex = 1;\n+    expect($('#foo').val()).to.equal('');\n+  });\n+\n+  it('should disable several options', function() {","path":"test/js/dropdown-utils_test.js","position":21,"original_position":21,"commit_id":"0f41605903eb227e9847b07f0969598ab9e6a31e","original_commit_id":"0f41605903eb227e9847b07f0969598ab9e6a31e","user":{"login":"fna","id":446154,"avatar_url":"https://avatars.githubusercontent.com/u/446154?v=3","gravatar_id":"","url":"https://api.github.com/users/fna","html_url":"https://github.com/fna","followers_url":"https://api.github.com/users/fna/followers","following_url":"https://api.github.com/users/fna/following{/other_user}","gists_url":"https://api.github.com/users/fna/gists{/gist_id}","starred_url":"https://api.github.com/users/fna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fna/subscriptions","organizations_url":"https://api.github.com/users/fna/orgs","repos_url":"https://api.github.com/users/fna/repos","events_url":"https://api.github.com/users/fna/events{/privacy}","received_events_url":"https://api.github.com/users/fna/received_events","type":"User","site_admin":false},"body":"You're right, that's a known problem of mine, I am just afraid that if I start giving long descriptions it's going to be hard to understand even for me. If you have a description in mind just rename it.","created_at":"2015-08-20T17:41:31Z","updated_at":"2015-08-20T17:41:31Z","html_url":"https://github.com/cfpb/owning-a-home/pull/576#discussion_r37558301","pull_request_url":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576","_links":{"self":{"href":"https://api.github.com/repos/cfpb/owning-a-home/pulls/comments/37558301"},"html":{"href":"https://github.com/cfpb/owning-a-home/pull/576#discussion_r37558301"},"pull_request":{"href":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576"}}},"pull_request":{"url":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576","id":42926523,"html_url":"https://github.com/cfpb/owning-a-home/pull/576","diff_url":"https://github.com/cfpb/owning-a-home/pull/576.diff","patch_url":"https://github.com/cfpb/owning-a-home/pull/576.patch","issue_url":"https://api.github.com/repos/cfpb/owning-a-home/issues/576","number":576,"state":"open","locked":false,"title":"Increase test coverage","user":{"login":"fna","id":446154,"avatar_url":"https://avatars.githubusercontent.com/u/446154?v=3","gravatar_id":"","url":"https://api.github.com/users/fna","html_url":"https://github.com/fna","followers_url":"https://api.github.com/users/fna/followers","following_url":"https://api.github.com/users/fna/following{/other_user}","gists_url":"https://api.github.com/users/fna/gists{/gist_id}","starred_url":"https://api.github.com/users/fna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fna/subscriptions","organizations_url":"https://api.github.com/users/fna/orgs","repos_url":"https://api.github.com/users/fna/repos","events_url":"https://api.github.com/users/fna/events{/privacy}","received_events_url":"https://api.github.com/users/fna/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-20T13:03:05Z","updated_at":"2015-08-20T17:41:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7d45b9d221f56ff2a31e6387fdb625b0592a41f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576/commits","review_comments_url":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576/comments","review_comment_url":"https://api.github.com/repos/cfpb/owning-a-home/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cfpb/owning-a-home/issues/576/comments","statuses_url":"https://api.github.com/repos/cfpb/owning-a-home/statuses/0f41605903eb227e9847b07f0969598ab9e6a31e","head":{"label":"fna:increase-test-coverage","ref":"increase-test-coverage","sha":"0f41605903eb227e9847b07f0969598ab9e6a31e","user":{"login":"fna","id":446154,"avatar_url":"https://avatars.githubusercontent.com/u/446154?v=3","gravatar_id":"","url":"https://api.github.com/users/fna","html_url":"https://github.com/fna","followers_url":"https://api.github.com/users/fna/followers","following_url":"https://api.github.com/users/fna/following{/other_user}","gists_url":"https://api.github.com/users/fna/gists{/gist_id}","starred_url":"https://api.github.com/users/fna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fna/subscriptions","organizations_url":"https://api.github.com/users/fna/orgs","repos_url":"https://api.github.com/users/fna/repos","events_url":"https://api.github.com/users/fna/events{/privacy}","received_events_url":"https://api.github.com/users/fna/received_events","type":"User","site_admin":false},"repo":{"id":22886903,"name":"owning-a-home","full_name":"fna/owning-a-home","owner":{"login":"fna","id":446154,"avatar_url":"https://avatars.githubusercontent.com/u/446154?v=3","gravatar_id":"","url":"https://api.github.com/users/fna","html_url":"https://github.com/fna","followers_url":"https://api.github.com/users/fna/followers","following_url":"https://api.github.com/users/fna/following{/other_user}","gists_url":"https://api.github.com/users/fna/gists{/gist_id}","starred_url":"https://api.github.com/users/fna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fna/subscriptions","organizations_url":"https://api.github.com/users/fna/orgs","repos_url":"https://api.github.com/users/fna/repos","events_url":"https://api.github.com/users/fna/events{/privacy}","received_events_url":"https://api.github.com/users/fna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fna/owning-a-home","description":"Unbiased mortgage rate comparison tool for homebuyers.","fork":true,"url":"https://api.github.com/repos/fna/owning-a-home","forks_url":"https://api.github.com/repos/fna/owning-a-home/forks","keys_url":"https://api.github.com/repos/fna/owning-a-home/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fna/owning-a-home/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fna/owning-a-home/teams","hooks_url":"https://api.github.com/repos/fna/owning-a-home/hooks","issue_events_url":"https://api.github.com/repos/fna/owning-a-home/issues/events{/number}","events_url":"https://api.github.com/repos/fna/owning-a-home/events","assignees_url":"https://api.github.com/repos/fna/owning-a-home/assignees{/user}","branches_url":"https://api.github.com/repos/fna/owning-a-home/branches{/branch}","tags_url":"https://api.github.com/repos/fna/owning-a-home/tags","blobs_url":"https://api.github.com/repos/fna/owning-a-home/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fna/owning-a-home/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fna/owning-a-home/git/refs{/sha}","trees_url":"https://api.github.com/repos/fna/owning-a-home/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fna/owning-a-home/statuses/{sha}","languages_url":"https://api.github.com/repos/fna/owning-a-home/languages","stargazers_url":"https://api.github.com/repos/fna/owning-a-home/stargazers","contributors_url":"https://api.github.com/repos/fna/owning-a-home/contributors","subscribers_url":"https://api.github.com/repos/fna/owning-a-home/subscribers","subscription_url":"https://api.github.com/repos/fna/owning-a-home/subscription","commits_url":"https://api.github.com/repos/fna/owning-a-home/commits{/sha}","git_commits_url":"https://api.github.com/repos/fna/owning-a-home/git/commits{/sha}","comments_url":"https://api.github.com/repos/fna/owning-a-home/comments{/number}","issue_comment_url":"https://api.github.com/repos/fna/owning-a-home/issues/comments{/number}","contents_url":"https://api.github.com/repos/fna/owning-a-home/contents/{+path}","compare_url":"https://api.github.com/repos/fna/owning-a-home/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fna/owning-a-home/merges","archive_url":"https://api.github.com/repos/fna/owning-a-home/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fna/owning-a-home/downloads","issues_url":"https://api.github.com/repos/fna/owning-a-home/issues{/number}","pulls_url":"https://api.github.com/repos/fna/owning-a-home/pulls{/number}","milestones_url":"https://api.github.com/repos/fna/owning-a-home/milestones{/number}","notifications_url":"https://api.github.com/repos/fna/owning-a-home/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fna/owning-a-home/labels{/name}","releases_url":"https://api.github.com/repos/fna/owning-a-home/releases{/id}","created_at":"2014-08-12T17:57:26Z","updated_at":"2015-06-01T15:39:44Z","pushed_at":"2015-08-19T19:30:46Z","git_url":"git://github.com/fna/owning-a-home.git","ssh_url":"git@github.com:fna/owning-a-home.git","clone_url":"https://github.com/fna/owning-a-home.git","svn_url":"https://github.com/fna/owning-a-home","homepage":"","size":12645,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cfpb:master","ref":"master","sha":"4b3ddd76b88824c5ab093189a47329e9509657ad","user":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"repo":{"id":15999442,"name":"owning-a-home","full_name":"cfpb/owning-a-home","owner":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfpb/owning-a-home","description":"Unbiased mortgage rate comparison tool for homebuyers.","fork":false,"url":"https://api.github.com/repos/cfpb/owning-a-home","forks_url":"https://api.github.com/repos/cfpb/owning-a-home/forks","keys_url":"https://api.github.com/repos/cfpb/owning-a-home/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfpb/owning-a-home/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfpb/owning-a-home/teams","hooks_url":"https://api.github.com/repos/cfpb/owning-a-home/hooks","issue_events_url":"https://api.github.com/repos/cfpb/owning-a-home/issues/events{/number}","events_url":"https://api.github.com/repos/cfpb/owning-a-home/events","assignees_url":"https://api.github.com/repos/cfpb/owning-a-home/assignees{/user}","branches_url":"https://api.github.com/repos/cfpb/owning-a-home/branches{/branch}","tags_url":"https://api.github.com/repos/cfpb/owning-a-home/tags","blobs_url":"https://api.github.com/repos/cfpb/owning-a-home/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfpb/owning-a-home/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfpb/owning-a-home/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfpb/owning-a-home/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfpb/owning-a-home/statuses/{sha}","languages_url":"https://api.github.com/repos/cfpb/owning-a-home/languages","stargazers_url":"https://api.github.com/repos/cfpb/owning-a-home/stargazers","contributors_url":"https://api.github.com/repos/cfpb/owning-a-home/contributors","subscribers_url":"https://api.github.com/repos/cfpb/owning-a-home/subscribers","subscription_url":"https://api.github.com/repos/cfpb/owning-a-home/subscription","commits_url":"https://api.github.com/repos/cfpb/owning-a-home/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfpb/owning-a-home/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfpb/owning-a-home/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfpb/owning-a-home/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfpb/owning-a-home/contents/{+path}","compare_url":"https://api.github.com/repos/cfpb/owning-a-home/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfpb/owning-a-home/merges","archive_url":"https://api.github.com/repos/cfpb/owning-a-home/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfpb/owning-a-home/downloads","issues_url":"https://api.github.com/repos/cfpb/owning-a-home/issues{/number}","pulls_url":"https://api.github.com/repos/cfpb/owning-a-home/pulls{/number}","milestones_url":"https://api.github.com/repos/cfpb/owning-a-home/milestones{/number}","notifications_url":"https://api.github.com/repos/cfpb/owning-a-home/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfpb/owning-a-home/labels{/name}","releases_url":"https://api.github.com/repos/cfpb/owning-a-home/releases{/id}","created_at":"2014-01-17T12:42:59Z","updated_at":"2015-07-23T21:51:37Z","pushed_at":"2015-08-20T13:03:05Z","git_url":"git://github.com/cfpb/owning-a-home.git","ssh_url":"git@github.com:cfpb/owning-a-home.git","clone_url":"https://github.com/cfpb/owning-a-home.git","svn_url":"https://github.com/cfpb/owning-a-home","homepage":"http://consumerfinance.gov/owning-a-home","size":26551,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":40,"forks":37,"open_issues":40,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576"},"html":{"href":"https://github.com/cfpb/owning-a-home/pull/576"},"issue":{"href":"https://api.github.com/repos/cfpb/owning-a-home/issues/576"},"comments":{"href":"https://api.github.com/repos/cfpb/owning-a-home/issues/576/comments"},"review_comments":{"href":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576/comments"},"review_comment":{"href":"https://api.github.com/repos/cfpb/owning-a-home/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cfpb/owning-a-home/pulls/576/commits"},"statuses":{"href":"https://api.github.com/repos/cfpb/owning-a-home/statuses/0f41605903eb227e9847b07f0969598ab9e6a31e"}}}}