{"action":"opened","issue":{"url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/697","repository_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit","labels_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/697/comments","events_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/697/events","html_url":"https://github.com/davezuko/react-redux-starter-kit/issues/697","id":146362604,"number":697,"title":"Can't run test with fbjs 0.8.0","user":{"login":"Freddy03h","id":1412159,"avatar_url":"https://avatars.githubusercontent.com/u/1412159?v=3","gravatar_id":"","url":"https://api.github.com/users/Freddy03h","html_url":"https://github.com/Freddy03h","followers_url":"https://api.github.com/users/Freddy03h/followers","following_url":"https://api.github.com/users/Freddy03h/following{/other_user}","gists_url":"https://api.github.com/users/Freddy03h/gists{/gist_id}","starred_url":"https://api.github.com/users/Freddy03h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freddy03h/subscriptions","organizations_url":"https://api.github.com/users/Freddy03h/orgs","repos_url":"https://api.github.com/users/Freddy03h/repos","events_url":"https://api.github.com/users/Freddy03h/events{/privacy}","received_events_url":"https://api.github.com/users/Freddy03h/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-06T16:15:04Z","updated_at":"2016-04-06T16:15:04Z","closed_at":null,"body":"## Issue\r\nHello, I installed Draft.js on my project, a _Rich Text Editor by Facebook_ : https://facebook.github.io/draft-js/\r\nAnd this project has the particularity to be dependent of **fbjs@0.8.0-alpha.2**\r\n\r\nAnd since, test doesn't run anymore, when I `npm run test`, I've got the following error : \r\n```\r\nSTART:\r\n06 04 2016 17:53:21.039:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/\r\n06 04 2016 17:53:21.071:INFO [launcher]: Starting browser PhantomJS\r\n06 04 2016 17:53:22.960:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#gba2WCoQqyELMJKhAAAA with id 86581400\r\nPhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR\r\n  TypeError: undefined is not a constructor (evaluating 'query.startsWith(name)')\r\n  at /Users/freddy/Desktop/react-redux-starter-kit/tests/test-bundler.js:91609 <- webpack:///~/draft-js/~/fbjs/lib/UserAgent.js:35:0\r\n\r\nFinished in 0.654 secs / 0 secs\r\n\r\nSUMMARY:\r\n✔ 0 tests completed\r\n```\r\n## How to reproduce\r\nYou can reproduce it on a new project, after cloning the starter kit : `npm install draft-js --save` and add dependancies of this lib to a view, for example add the following code to `src/views/HomeView/HomeView.js` : \r\n```\r\nimport {\r\n  Editor,\r\n  EditorState,\r\n  RichUtils,\r\n  Entity,\r\n  CompositeDecorator,\r\n} from 'draft-js'\r\n```\r\nand `npm run test`\r\n\r\n## related ?\r\nI don't know if it's an issue related to this project, or directly related to fbjs or maybe phantomjs. So, sorry if it's not related to this project.\r\n\r\nI also noticed that react@15.0.0 will use fbjs@0.8.0 https://github.com/facebook/react/blob/master/package.json#L38\r\nSo it will be also problematic for the react update."}}