Skip to content

Commit 0f7aae5

Browse files
refactor: code cleanup
1 parent 99d1dca commit 0f7aae5

File tree

4 files changed

+1
-27
lines changed

4 files changed

+1
-27
lines changed

__tests__/components/popus/EmailForm.test.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ jest.mock("next/router", () => ({
1616
}),
1717
}));
1818

19-
// Mocking the arrow button in order to avoid double work since it was tested in ui tests
20-
jest.mock("../../../src/components/ui/button/Arrow", () => {
21-
return {
22-
__esModule: true,
23-
default: () => {
24-
return <div />;
25-
},
26-
};
27-
});
28-
29-
3019
const handleClose = jest.fn()
3120

3221
const onSubmit = jest.fn()

__tests__/components/popus/NamesForm.test.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ jest.mock("next/router", () => ({
1616
}),
1717
}));
1818
const handleClose = jest.fn()
19-
jest.mock("../../../src/components/ui/button/Arrow", () => {
20-
return {
21-
__esModule: true,
22-
default: () => {
23-
return <div />;
24-
},
25-
};
26-
});
2719
beforeEach(() => {
2820
renderWithRedux(<EditProfile show onClose={handleClose} />)
2921
})
@@ -40,6 +32,7 @@ describe("NamesForm", () => {
4032
expect(firstNameInput).toHaveLength(1)
4133
expect(lastNameInput).toHaveLength(1)
4234
})
35+
4336
it("it should close the modal when its open", () => {
4437
expect(screen.getByTestId('names-edit-form')).toBeInTheDocument()
4538
fireEvent.click(screen.getByTestId('close-button'))

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
"lint-staged": "^13.2.0",
115115
"postcss": "^8.4.24",
116116
"prettier": "^2.8.8",
117-
"redux-mock-store": "^1.5.4",
118117
"tailwindcss": "^3.3.2"
119118
},
120119
"lint-staged": {

yarn.lock

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12032,13 +12032,6 @@ redent@^3.0.0:
1203212032
indent-string "^4.0.0"
1203312033
strip-indent "^3.0.0"
1203412034

12035-
redux-mock-store@^1.5.4:
12036-
version "1.5.4"
12037-
resolved "https://registry.yarnpkg.com/redux-mock-store/-/redux-mock-store-1.5.4.tgz#90d02495fd918ddbaa96b83aef626287c9ab5872"
12038-
integrity sha512-xmcA0O/tjCLXhh9Fuiq6pMrJCwFRaouA8436zcikdIpYWWCjU76CRk+i2bHx8EeiSiMGnB85/lZdU3wIJVXHTA==
12039-
dependencies:
12040-
lodash.isplainobject "^4.0.6"
12041-
1204212035
redux-thunk@^2.4.2:
1204312036
version "2.4.2"
1204412037
resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-2.4.2.tgz#b9d05d11994b99f7a91ea223e8b04cf0afa5ef3b"

0 commit comments

Comments
 (0)