Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Commit 0c93d40

Browse files
committed
fix unit test
1 parent 5bf1bd8 commit 0c93d40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-hook-form-input",
3-
"version": "1.0.13",
3+
"version": "1.0.14-beta.1",
44
"description": "Wrapper component for controlled inputs",
55
"main": "dist/index.js",
66
"module": "dist/index.es.js",

src/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('React Hook Form Input', () => {
3232
);
3333

3434
expect(register).toBeCalledWith(
35-
{ name: 'test', type: 'custom' },
35+
{ name: 'test' },
3636
{ required: true },
3737
);
3838
});
@@ -41,7 +41,7 @@ describe('React Hook Form Input', () => {
4141
const setValue = () => {};
4242
const register = jest.fn();
4343
const unregister = jest.fn();
44-
const {unmount} = render(
44+
const { unmount } = render(
4545
<RHFInput
4646
setValue={setValue}
4747
register={register}

0 commit comments

Comments
 (0)