-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added comments to props, refactored some code
- Loading branch information
1 parent
df3a194
commit 9780db7
Showing
8 changed files
with
96 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/components/badge/__snapshots__/badge_group.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EuiBadgeGroup is rendered 1`] = ` | ||
<div | ||
aria-label="aria-label" | ||
class="euiBadgeGroup euiBadgeGroup--gutterExtraSmall euiBadgeGroup--responsive euiBadgeGroup--wrap testClass1 testClass2" | ||
data-test-subj="test subject string" | ||
> | ||
<span | ||
aria-label="aria-label" | ||
class="euiBadge euiBadge-isDisabled euiBadge--iconLeft testClass1 testClass2" | ||
data-test-subj="test subject string" | ||
style="background-color:#d3dae6;color:#000" | ||
> | ||
<span | ||
class="euiBadge__content" | ||
> | ||
<span | ||
class="euiBadge__text" | ||
> | ||
Content | ||
</span> | ||
</span> | ||
</span> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import 'badge'; | ||
@import 'badge_group'; | ||
@import 'beta_badge/index'; | ||
@import 'notification_badge/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { render } from 'enzyme'; | ||
import { requiredProps } from '../../test/required_props'; | ||
|
||
import { EuiBadge } from './badge'; | ||
import { EuiBadgeGroup } from './badge_group'; | ||
|
||
describe('EuiBadgeGroup', () => { | ||
test('is rendered', () => { | ||
const component = render( | ||
<EuiBadgeGroup {...requiredProps}> | ||
<EuiBadge isDisabled {...requiredProps}> | ||
Content | ||
</EuiBadge> | ||
</EuiBadgeGroup> | ||
); | ||
|
||
expect(component).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters