Skip to content

Commit f02116b

Browse files
author
Cloud Xiao
committed
Issues fixed
1 parent 45af4f8 commit f02116b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/issues/IssueList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const IssueList = ({ issues, onCloseClick }) => (
2727
</td>
2828
<td>
2929
{issue.labels.map(label => (
30-
<>
30+
<React.Fragment key={label.id}>
3131
<span className="badge badge-primary">{label.name}</span>
3232
<span> </span>
33-
</>
33+
</React.Fragment>
3434
))}
3535
</td>
3636
<td>{issue.assignee.login}</td>

src/components/issues/issueList.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ function renderIssueList(args) {
2020
}
2121

2222
test("lists all issues", () => {
23-
const { getAllByText, debug } = renderIssueList({
23+
const { getAllByText } = renderIssueList({
2424
issues
2525
});
26-
debug();
26+
2727
expect(getAllByText(/close/i)).toHaveLength(issues.length);
2828
// just like a manual tester, we'll instruct our test to wait for the alert
2929
// to show up before continuing with our assertions.

0 commit comments

Comments
 (0)