Skip to content

Commit 57b455e

Browse files
committed
refactor: make test message more descriptive
1 parent 9306407 commit 57b455e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

__tests__/components/sections/communities/overview/MainHeader.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("MainHeader", () => {
1818
expect(element).toBeInTheDocument()
1919
})
2020
if(mockCommunity.icon){
21-
expect(screen.getByRole('img')).toBeInTheDocument()
21+
expect(screen.getByAltText(mockCommunity.name)).toBeInTheDocument()
2222
}
2323
expect(screen.getByText("communities.submissions")).toBeInTheDocument();
2424
expect(screen.getByText("communities.feedbacks")).toBeInTheDocument();

__tests__/components/sections/communities/overview/Wrapper.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jest.mock("next/router", () => ({
1111

1212

1313
describe("Wrapper", () => {
14-
it("displays the wrapper", () => {
14+
it("displays the wrapper with all the children", () => {
1515
renderWithRedux(
1616
<Wrapper filter={<div>Test Filter</div>}>
1717
<div>Wrappper test</div>

__tests__/components/sections/communities/overview/_partials/SectionWrapper.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("SectionWrapper", () => {
1616
expect(screen.getByText("Test Children")).toBeInTheDocument();
1717
});
1818

19-
it("renders without title and description", () => {
19+
it("renders without title and description when they are not available", () => {
2020
render(
2121
<SectionWrapper>
2222
<div>Test Children</div>

0 commit comments

Comments
 (0)