Skip to content

Commit

Permalink
fix(component): add displayName to TextInput (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws authored Jun 13, 2022
1 parent 8bf92ec commit cb5ca89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/components/FormControls/TextInput.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ describe.concurrent('Components / Form controls / Text input', () => {
expect(textInput).toBeInTheDocument();
});
});

describe('Check display name', () => {
it('should have a display name of "TextInput"', () => {
expect(TextInput.displayName).toEqual('TextInput');
});
});
});
2 changes: 2 additions & 0 deletions src/lib/components/FormControls/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ export const TextInput = forwardRef<HTMLInputElement, TextInputProps>(
</>
),
);

TextInput.displayName = 'TextInput';

0 comments on commit cb5ca89

Please sign in to comment.