Skip to content

Commit 0dbab30

Browse files
author
Said Shah
committed
Refactored test
1 parent e5d4ba7 commit 0dbab30

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/atoms/forms/password-input.test.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,9 @@ describe("PasswordInput", () => {
4848
});
4949

5050
test("when isVisible prop set to false, renders with type password", () => {
51-
// Arrange
52-
const testDataId = "testDataId";
53-
54-
// Act
51+
// Arrange & Act
5552
const { container } = render(
56-
<PasswordInput
57-
onChange={() => {}}
58-
isVisible={false}
59-
id={uuid()}
60-
testId={testDataId}
61-
/>
53+
<PasswordInput onChange={() => {}} isVisible={false} id={uuid()} />
6254
);
6355
const htmlInputElement = container.getElementsByTagName("input");
6456

0 commit comments

Comments
 (0)