feat: show archive badge if repo is archive
This commit is contained in:
1 parent
b039fa16af
commit
be79fe4051
3 files changed
+27
-1
No files matched your search
@@ -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"
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user