Skip to content

Commit b729ea5

Browse files
authored
fix typo (#104)
* fix typo componentDidUpdate * Update index.test.js
1 parent 94c2225 commit b729ea5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/useForm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class FormStore {
138138
if (process.env.NODE_ENV !== 'production' && !this.formHooked) {
139139
warning(
140140
false,
141-
'Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?',
141+
'Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?',
142142
);
143143
}
144144
};

tests/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ describe('Form.Basic', () => {
660660
mount(<Test />);
661661

662662
expect(errorSpy).toHaveBeenCalledWith(
663-
'Warning: Instance created by `useForm` is not connect to any Form element. Forget to pass `form` prop?',
663+
'Warning: Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?',
664664
);
665665
errorSpy.mockRestore();
666666
});

0 commit comments

Comments
 (0)