{"action":"closed","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/3056","repository_url":"https://api.github.com/repos/rackt/react-router","labels_url":"https://api.github.com/repos/rackt/react-router/issues/3056/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/3056/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/3056/events","html_url":"https://github.com/rackt/react-router/issues/3056","id":132633877,"number":3056,"title":"Testing href value from a link component","user":{"login":"ekaradon","id":9439390,"avatar_url":"https://avatars.githubusercontent.com/u/9439390?v=3","gravatar_id":"","url":"https://api.github.com/users/ekaradon","html_url":"https://github.com/ekaradon","followers_url":"https://api.github.com/users/ekaradon/followers","following_url":"https://api.github.com/users/ekaradon/following{/other_user}","gists_url":"https://api.github.com/users/ekaradon/gists{/gist_id}","starred_url":"https://api.github.com/users/ekaradon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekaradon/subscriptions","organizations_url":"https://api.github.com/users/ekaradon/orgs","repos_url":"https://api.github.com/users/ekaradon/repos","events_url":"https://api.github.com/users/ekaradon/events{/privacy}","received_events_url":"https://api.github.com/users/ekaradon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T08:20:27Z","updated_at":"2016-02-10T11:10:23Z","closed_at":"2016-02-10T11:10:23Z","body":"Hello,\r\n\r\nI am looking for a solution in order to still be able to use `Link` from `react-router` instead of `a` when testing `href` attribute value. \r\nIndeed, I have some components which change of route according to the context. However, when I am testing the `href` attribute value, the only thing returned is `null`. \r\nHowever, when I use an `a`, it returns me the expected value. \r\n\r\nHere is an failing test:\r\n```javascript\r\n/* global describe, it, before, beforeEach, afterEach */\r\nimport React from 'react';\r\nimport {Link} from 'react-router';\r\nimport TestUtils from 'react-addons-test-utils';\r\nimport expect from 'must';\r\n\r\nconst LINK_LOCATION = '/my_route';\r\n\r\nclass TestComponent extends React.Component {\r\n\r\n    render() {\r\n        return (\r\n            <div>\r\n                <Link className='link' to={LINK_LOCATION}/>\r\n                <a className='a' href={LINK_LOCATION}/>\r\n            </div>\r\n        );\r\n    }\r\n}\r\n\r\ndescribe('Url things', () => {\r\n    it('should return me the same href value for both link and a node', () => {\r\n        const test_component = TestUtils.renderIntoDocument(<TestComponent/>);\r\n        const link = TestUtils.findRenderedDOMComponentWithClass(test_component, 'link');\r\n        const a = TestUtils.findRenderedDOMComponentWithClass(test_component, 'a');\r\n        expect(link.getAttribute('href')).to.eql(a.getAttribute('href'));\r\n    });\r\n});\r\n```\r\n\r\nOutput: `AssertionError: null must be equivalent to \"/my_route\"`\r\n\r\nI have found several things about context, but it looks like outdated. Can someone help me doing this? "}}