Skip to content

Commit 733f17e

Browse files
AJ Fixing the sonarqube warning about unnecessary
1 parent 65f7fd6 commit 733f17e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/app/_components/nhs-frontend/Details.test.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,7 @@ describe("Details Component", () => {
99

1010
it("renders non expandable section correctly", () => {
1111
render(
12-
<Details
13-
title={"title"}
14-
component={
15-
<>
16-
<p>test</p>
17-
</>
18-
}
19-
notExpandable={true}
20-
/>,
12+
<Details title={"title"} component={<p>test</p>} notExpandable={true} />,
2113
);
2214
expect(screen.queryByRole("group")).not.toBeInTheDocument();
2315
expect(

0 commit comments

Comments
 (0)