{"action":"created","comment":{"url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/comments/69879813","id":69879813,"diff_hunk":"@@ -1,9 +1,110 @@\n import expect from 'expect.js';\n import React from 'react';\n-import ReactDOM from 'react-dom';\n-import TestUtils, { Simulate } from 'react-addons-test-utils';\n+import {render, findDOMNode, unmountComponentAtNode} from 'react-dom';\n+import TestUtils from 'react-addons-test-utils'\n import CascadeSelect from '../src';\n \n+const options = [{\n+  value: 'beijing',\n+  label: '北京',\n+  children: [{\n+    value: 'xicheng',\n+    label: '西城',\n+    children: [{\n+      value: 'zhonggc',\n+      label: '中观村大街',\n+    }],\n+  }]\n+},{\n+  value: 'tianjin',\n+  label: '天津',\n+  children: [{\n+    value: 'heping',\n+    label: '和平区',\n+    children: [{\n+      value: 'nanjinglu',\n+      label: '南京路',\n+    }],\n+  }]\n+},{\n+  value: 'zhejiang',\n+  label: '浙江',\n+  children: [{\n+    value: 'hangzhou',\n+    label: '杭州',\n+    children: [{\n+      value: 'xihu',\n+      label: '西湖',\n+    }],\n+  }]\n+}, {\n+  value: 'jiangsu',\n+  label: '江苏',\n+  children: [{\n+    value: 'nanjing',\n+    label: '南京',\n+    children: [{\n+      value: 'zhonghuamen',\n+      label: '中华门',\n+    }],\n+  }]\n+}];\n+\n describe('CascadeSelect', () => {\n+  let instance;\n+  let div;\n+\n+  beforeEach(() => {\n+    div = document.createElement('div');\n+    document.body.appendChild(div);\n+  });\n+\n+  afterEach(() => {\n+    unmountComponentAtNode(div);\n+    document.body.removeChild(div);\n+  });\n+\n+  it('should display placeholder', () => {","path":"tests/CascadeSelect.spec.js","position":69,"original_position":69,"commit_id":"1af63073bad70189002ee0d51e7a5ecaf171cdcd","original_commit_id":"1af63073bad70189002ee0d51e7a5ecaf171cdcd","user":{"login":"eternalsky","id":8038928,"avatar_url":"https://avatars.githubusercontent.com/u/8038928?v=3","gravatar_id":"","url":"https://api.github.com/users/eternalsky","html_url":"https://github.com/eternalsky","followers_url":"https://api.github.com/users/eternalsky/followers","following_url":"https://api.github.com/users/eternalsky/following{/other_user}","gists_url":"https://api.github.com/users/eternalsky/gists{/gist_id}","starred_url":"https://api.github.com/users/eternalsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eternalsky/subscriptions","organizations_url":"https://api.github.com/users/eternalsky/orgs","repos_url":"https://api.github.com/users/eternalsky/repos","events_url":"https://api.github.com/users/eternalsky/events{/privacy}","received_events_url":"https://api.github.com/users/eternalsky/received_events","type":"User","site_admin":false},"body":"这个 test 我这里过不了，另外 querySelector 没法在 IE8 下跑，这里可以 require 1.x 的 jquery，jquery 作为 devDenpendence","created_at":"2016-07-07T09:48:14Z","updated_at":"2016-07-07T09:48:14Z","html_url":"https://github.com/uxcore/uxcore-cascade-select/pull/2#discussion_r69879813","pull_request_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/comments/69879813"},"html":{"href":"https://github.com/uxcore/uxcore-cascade-select/pull/2#discussion_r69879813"},"pull_request":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2","id":76394499,"html_url":"https://github.com/uxcore/uxcore-cascade-select/pull/2","diff_url":"https://github.com/uxcore/uxcore-cascade-select/pull/2.diff","patch_url":"https://github.com/uxcore/uxcore-cascade-select/pull/2.patch","issue_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/issues/2","number":2,"state":"open","locked":false,"title":"First Version","user":{"login":"lpgray","id":1625503,"avatar_url":"https://avatars.githubusercontent.com/u/1625503?v=3","gravatar_id":"","url":"https://api.github.com/users/lpgray","html_url":"https://github.com/lpgray","followers_url":"https://api.github.com/users/lpgray/followers","following_url":"https://api.github.com/users/lpgray/following{/other_user}","gists_url":"https://api.github.com/users/lpgray/gists{/gist_id}","starred_url":"https://api.github.com/users/lpgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpgray/subscriptions","organizations_url":"https://api.github.com/users/lpgray/orgs","repos_url":"https://api.github.com/users/lpgray/repos","events_url":"https://api.github.com/users/lpgray/events{/privacy}","received_events_url":"https://api.github.com/users/lpgray/received_events","type":"User","site_admin":false},"body":"Please review my code and merge.","created_at":"2016-07-06T08:21:49Z","updated_at":"2016-07-07T09:48:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a007e541825b14ef27199d5d1af51ea6db65b40","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2/commits","review_comments_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2/comments","review_comment_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/issues/2/comments","statuses_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/statuses/1af63073bad70189002ee0d51e7a5ecaf171cdcd","head":{"label":"lpgray:master","ref":"master","sha":"1af63073bad70189002ee0d51e7a5ecaf171cdcd","user":{"login":"lpgray","id":1625503,"avatar_url":"https://avatars.githubusercontent.com/u/1625503?v=3","gravatar_id":"","url":"https://api.github.com/users/lpgray","html_url":"https://github.com/lpgray","followers_url":"https://api.github.com/users/lpgray/followers","following_url":"https://api.github.com/users/lpgray/following{/other_user}","gists_url":"https://api.github.com/users/lpgray/gists{/gist_id}","starred_url":"https://api.github.com/users/lpgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpgray/subscriptions","organizations_url":"https://api.github.com/users/lpgray/orgs","repos_url":"https://api.github.com/users/lpgray/repos","events_url":"https://api.github.com/users/lpgray/events{/privacy}","received_events_url":"https://api.github.com/users/lpgray/received_events","type":"User","site_admin":false},"repo":{"id":62186645,"name":"uxcore-cascade-select","full_name":"lpgray/uxcore-cascade-select","owner":{"login":"lpgray","id":1625503,"avatar_url":"https://avatars.githubusercontent.com/u/1625503?v=3","gravatar_id":"","url":"https://api.github.com/users/lpgray","html_url":"https://github.com/lpgray","followers_url":"https://api.github.com/users/lpgray/followers","following_url":"https://api.github.com/users/lpgray/following{/other_user}","gists_url":"https://api.github.com/users/lpgray/gists{/gist_id}","starred_url":"https://api.github.com/users/lpgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpgray/subscriptions","organizations_url":"https://api.github.com/users/lpgray/orgs","repos_url":"https://api.github.com/users/lpgray/repos","events_url":"https://api.github.com/users/lpgray/events{/privacy}","received_events_url":"https://api.github.com/users/lpgray/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lpgray/uxcore-cascade-select","description":"cascade select react component","fork":true,"url":"https://api.github.com/repos/lpgray/uxcore-cascade-select","forks_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/forks","keys_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/teams","hooks_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/hooks","issue_events_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/issues/events{/number}","events_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/events","assignees_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/assignees{/user}","branches_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/branches{/branch}","tags_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/tags","blobs_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/git/refs{/sha}","trees_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/statuses/{sha}","languages_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/languages","stargazers_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/stargazers","contributors_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/contributors","subscribers_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/subscribers","subscription_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/subscription","commits_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/commits{/sha}","git_commits_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/git/commits{/sha}","comments_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/comments{/number}","issue_comment_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/issues/comments{/number}","contents_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/contents/{+path}","compare_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/merges","archive_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/downloads","issues_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/issues{/number}","pulls_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/pulls{/number}","milestones_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/milestones{/number}","notifications_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/labels{/name}","releases_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/releases{/id}","deployments_url":"https://api.github.com/repos/lpgray/uxcore-cascade-select/deployments","created_at":"2016-06-29T01:45:54Z","updated_at":"2016-07-06T15:28:10Z","pushed_at":"2016-07-07T04:22:15Z","git_url":"git://github.com/lpgray/uxcore-cascade-select.git","ssh_url":"git@github.com:lpgray/uxcore-cascade-select.git","clone_url":"https://github.com/lpgray/uxcore-cascade-select.git","svn_url":"https://github.com/lpgray/uxcore-cascade-select","homepage":"","size":42,"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":"uxcore:master","ref":"master","sha":"a8deb937bae5d56ee2978df2e179374f80254fd0","user":{"login":"uxcore","id":12255016,"avatar_url":"https://avatars.githubusercontent.com/u/12255016?v=3","gravatar_id":"","url":"https://api.github.com/users/uxcore","html_url":"https://github.com/uxcore","followers_url":"https://api.github.com/users/uxcore/followers","following_url":"https://api.github.com/users/uxcore/following{/other_user}","gists_url":"https://api.github.com/users/uxcore/gists{/gist_id}","starred_url":"https://api.github.com/users/uxcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxcore/subscriptions","organizations_url":"https://api.github.com/users/uxcore/orgs","repos_url":"https://api.github.com/users/uxcore/repos","events_url":"https://api.github.com/users/uxcore/events{/privacy}","received_events_url":"https://api.github.com/users/uxcore/received_events","type":"Organization","site_admin":false},"repo":{"id":62028098,"name":"uxcore-cascade-select","full_name":"uxcore/uxcore-cascade-select","owner":{"login":"uxcore","id":12255016,"avatar_url":"https://avatars.githubusercontent.com/u/12255016?v=3","gravatar_id":"","url":"https://api.github.com/users/uxcore","html_url":"https://github.com/uxcore","followers_url":"https://api.github.com/users/uxcore/followers","following_url":"https://api.github.com/users/uxcore/following{/other_user}","gists_url":"https://api.github.com/users/uxcore/gists{/gist_id}","starred_url":"https://api.github.com/users/uxcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxcore/subscriptions","organizations_url":"https://api.github.com/users/uxcore/orgs","repos_url":"https://api.github.com/users/uxcore/repos","events_url":"https://api.github.com/users/uxcore/events{/privacy}","received_events_url":"https://api.github.com/users/uxcore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uxcore/uxcore-cascade-select","description":null,"fork":false,"url":"https://api.github.com/repos/uxcore/uxcore-cascade-select","forks_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/forks","keys_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/teams","hooks_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/hooks","issue_events_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/issues/events{/number}","events_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/events","assignees_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/assignees{/user}","branches_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/branches{/branch}","tags_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/tags","blobs_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/git/refs{/sha}","trees_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/statuses/{sha}","languages_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/languages","stargazers_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/stargazers","contributors_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/contributors","subscribers_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/subscribers","subscription_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/subscription","commits_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/commits{/sha}","git_commits_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/git/commits{/sha}","comments_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/comments{/number}","issue_comment_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/issues/comments{/number}","contents_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/contents/{+path}","compare_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/merges","archive_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/downloads","issues_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/issues{/number}","pulls_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls{/number}","milestones_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/milestones{/number}","notifications_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/labels{/name}","releases_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/releases{/id}","deployments_url":"https://api.github.com/repos/uxcore/uxcore-cascade-select/deployments","created_at":"2016-06-27T05:37:32Z","updated_at":"2016-06-27T05:56:05Z","pushed_at":"2016-07-07T04:22:16Z","git_url":"git://github.com/uxcore/uxcore-cascade-select.git","ssh_url":"git@github.com:uxcore/uxcore-cascade-select.git","clone_url":"https://github.com/uxcore/uxcore-cascade-select.git","svn_url":"https://github.com/uxcore/uxcore-cascade-select","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2"},"html":{"href":"https://github.com/uxcore/uxcore-cascade-select/pull/2"},"issue":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/issues/2"},"comments":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/uxcore/uxcore-cascade-select/statuses/1af63073bad70189002ee0d51e7a5ecaf171cdcd"}}}}
{"actor":{"display_login":"eternalsky"}}