feat: show archive badge if repo is archive

This commit is contained in:
anuraghazra
2020-07-18 20:20:36 +05:30
parent b039fa16af
commit be79fe4051
3 changed files with 27 additions and 1 deletions

View File

@ -147,4 +147,15 @@ describe("Test renderRepoCard", () => {
"#252525"
);
});
it("should render archive badge if repo is archived", () => {
document.body.innerHTML = renderRepoCard({
...data_repo.repository,
isArchived: true,
});
expect(queryByTestId(document.body, "archive-badge")).toHaveTextContent(
"Archived"
);
});
});