Skip to content

Commit

Permalink
fix test and rxjs
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushiknishchay committed Sep 7, 2019
1 parent 5771cb4 commit 2b3ce1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"redux-logger": "^3.0.6",
"redux-thunk": "^2.2.0",
"reselect": "^4.0.0",
"rxjs": "^6.5.2"
"rxjs": "5.5.8"
},
"scripts": {
"start": "react-scripts start",
Expand Down
15 changes: 5 additions & 10 deletions src/components/ProfileDataList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,23 @@ const ProfileDataList = ({ data }) => {
<ul className="list-group list-group-flush">
<li className="list-group-item"><h1>{data.name}</h1></li>
<li className="list-group-item">
Followers:
{data.followers}
{`Followers: ${data.followers}`}
</li>
<li className="list-group-item">
Following:
{data.following}
{`Following: ${data.following}`}
</li>
<li className="list-group-item">
Public repos:
{data.public_repos}
{`Public repos: ${data.public_repos}`}
</li>
<li className="list-group-item">
Public Gists:
{data.public_gists}
{`Public Gists: ${data.public_gists}`}
</li>
<li className="list-group-item">
Blog:
<a href={data.blog}>{data.blog}</a>
</li>
<li className="list-group-item">
Location:
{data.location}
{`Location: ${data.location}`}
</li>
</ul>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/__tests__/ProfileDataList.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('<ProfileDataList/>', () => {
expect(list.at(2).text()).toEqual('Following: 20');
expect(list.at(3).text()).toEqual('Public repos: 30');
expect(list.at(4).text()).toEqual('Public Gists: 12');
expect(list.at(5).text()).toEqual('Blog: http://john.doe/');
expect(list.at(5).text()).toEqual('Blog:http://john.doe/');
expect(list.at(6).text()).toEqual('Location: New York');
});
});

0 comments on commit 2b3ce1d

Please sign in to comment.