Skip to content

Commit

Permalink
fixed warnings/errors from jest log
Browse files Browse the repository at this point in the history
  • Loading branch information
miloofcroton committed May 9, 2019
1 parent 4a4c0c8 commit ddd52a4
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/Badge/Badge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ const cx = lucidClassNames.bind('&-Badge');

const { node, string, oneOf } = PropTypes;

const KIND_DEFAULT = 'default';
const KIND_PRIMARY = 'primary';
const KIND_SUCCESS = 'success';
const KIND_DANGER = 'danger';
const KIND_WARNING = 'warning';
const KIND_INFO = 'info';
const KIND_DARK = 'dark';
const KIND_DEFAULT = 'default';
const KINDS = [
KIND_DEFAULT,
KIND_PRIMARY,
KIND_SUCCESS,
KIND_DANGER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ exports[`SplitButton [common] example testing should match snapshot(s) for 04.up
hasOnlyIcon={false}
isActive={false}
isDisabled={false}
kind="success"
kind="primary"
onClick={[Function]}
type="button"
>
Expand All @@ -340,7 +340,7 @@ exports[`SplitButton [common] example testing should match snapshot(s) for 04.up
hasOnlyIcon={true}
isActive={false}
isDisabled={false}
kind="success"
kind="primary"
onClick={[Function]}
type="button"
>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SplitButton/examples/04.up.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { SplitButton } from '../../../index';
export default createClass({
render() {
return (
<SplitButton direction="up" kind="success" style={{ height: 100 }}>
<SplitButton.Button kind="success">Save</SplitButton.Button>
<SplitButton direction="up" kind="primary" style={{ height: 100 }}>
<SplitButton.Button kind="primary">Save</SplitButton.Button>
<SplitButton.Button>Action 01</SplitButton.Button>
<SplitButton.Button>Here's Another Action</SplitButton.Button>
<SplitButton.Button>And Another Action</SplitButton.Button>
Expand Down
88 changes: 88 additions & 0 deletions src/components/Tabs/__snapshots__/Tabs.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,94 @@ exports[`Tabs [common] example testing should match snapshot(s) for 09-with-coun
</div>
`;

exports[`Tabs [common] example testing should match snapshot(s) for 09-with-count 2`] = `
<div
className="lucid-Tabs"
>
<ul
className="lucid-Tabs-bar lucid-Tabs-variable-width"
>
<Tabs.Tab
Title="One"
count={1231321}
index={0}
isLastTab={false}
isOpen={true}
isProgressive={false}
isSelected={true}
isVariableCountWidth={true}
key="0"
onSelect={[Function]}
>
<Tabs.Title>
One
</Tabs.Title>
One content
</Tabs.Tab>
<Tabs.Tab
Title="Two"
count={6546541612}
index={1}
isLastTab={false}
isOpen={true}
isProgressive={false}
isSelected={false}
isVariableCountWidth={true}
key="1"
onSelect={[Function]}
>
<Tabs.Title>
Two
</Tabs.Title>
Two content
</Tabs.Tab>
<Tabs.Tab
Title="Three"
count={7}
index={2}
isLastTab={false}
isOpen={true}
isProgressive={false}
isSelected={false}
isVariableCountWidth={true}
key="2"
onSelect={[Function]}
>
<Tabs.Title>
Three
</Tabs.Title>
Three content
</Tabs.Tab>
<Tabs.Tab
Title="Three"
count={123}
index={3}
isDisabled={true}
isLastTab={true}
isOpen={true}
isProgressive={false}
isSelected={false}
isVariableCountWidth={true}
key="3"
onSelect={[Function]}
>
<Tabs.Title>
Three
</Tabs.Title>
Three content
</Tabs.Tab>
</ul>
<div
className="lucid-Tabs-content"
>
<Tabs.Title>
One
</Tabs.Title>
One content
</div>
</div>
`;

exports[`Tabs [common] example testing should match snapshot(s) for 10-floating 1`] = `
<div
className="lucid-Tabs"
Expand Down

0 comments on commit ddd52a4

Please sign in to comment.