Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add another test for apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
uppal101 committed Sep 14, 2017
1 parent 1d3844b commit 460dcb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/api-explorer-ui/__tests__/SecurityInput.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ describe('apiKey', () => {
},
]);
});
test('should display name inside label', () => {
const onChange = jest.fn();
const securityInput = mount(<SecurityInput {...props} onChange={onChange} />);

expect(securityInput.find('label').text()).toBe('api_key');
});
});

describe('basic', () => {
Expand Down

0 comments on commit 460dcb0

Please sign in to comment.