Skip to content

Commit

Permalink
chore: updated tests and fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
panvourtsis committed Sep 19, 2023
1 parent 1e39b20 commit 9372e37
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 129 deletions.
4 changes: 2 additions & 2 deletions __mocks__/@tippyjs/react.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import React, { PropsWithChildren } from 'react';

const Tippy: React.FC<{ content: string }> = props => {
const Tippy = (props: PropsWithChildren<{ content: string }>) => {
const { children, content, ...rest } = props;

return (
Expand Down
15 changes: 0 additions & 15 deletions src/components/Avatar/__snapshots__/Avatar.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
<div
className="emotion-8"
>

JN
</div>
</div>
Expand All @@ -643,7 +642,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
<div
className="emotion-8"
>

+
2
</div>
Expand Down Expand Up @@ -678,7 +676,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
<div
className="emotion-17"
>

<span
className="emotion-18"
onClick={[Function]}
Expand Down Expand Up @@ -706,7 +703,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
<div
className="emotion-17"
>

+
3
</div>
Expand Down Expand Up @@ -774,7 +770,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
<div
className="emotion-34"
>

+
2
</div>
Expand Down Expand Up @@ -820,7 +815,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
<div
className="emotion-41"
>

JN
</div>
</div>
Expand All @@ -841,7 +835,6 @@ exports[`Storyshots Design System/Avatar Avatar Stack 1`] = `
<div
className="emotion-41"
>

+
2
</div>
Expand Down Expand Up @@ -1153,7 +1146,6 @@ exports[`Storyshots Design System/Avatar Avatar with icon 1`] = `
<div
className="emotion-2"
>

<span
className="emotion-3"
onClick={[Function]}
Expand All @@ -1174,7 +1166,6 @@ exports[`Storyshots Design System/Avatar Avatar with icon 1`] = `
<div
className="emotion-5"
>

<span
className="emotion-3"
onClick={[Function]}
Expand All @@ -1195,7 +1186,6 @@ exports[`Storyshots Design System/Avatar Avatar with icon 1`] = `
<div
className="emotion-8"
>

<span
className="emotion-3"
onClick={[Function]}
Expand All @@ -1216,7 +1206,6 @@ exports[`Storyshots Design System/Avatar Avatar with icon 1`] = `
<div
className="emotion-11"
>

<span
className="emotion-3"
onClick={[Function]}
Expand Down Expand Up @@ -1476,7 +1465,6 @@ exports[`Storyshots Design System/Avatar Avatar with letter 1`] = `
<div
className="emotion-2"
>

JN
</div>
</div>
Expand All @@ -1490,7 +1478,6 @@ exports[`Storyshots Design System/Avatar Avatar with letter 1`] = `
<div
className="emotion-3"
>

JN
</div>
</div>
Expand All @@ -1504,7 +1491,6 @@ exports[`Storyshots Design System/Avatar Avatar with letter 1`] = `
<div
className="emotion-4"
>

JN
</div>
</div>
Expand All @@ -1518,7 +1504,6 @@ exports[`Storyshots Design System/Avatar Avatar with letter 1`] = `
<div
className="emotion-5"
>

JN
</div>
</div>
Expand Down
6 changes: 0 additions & 6 deletions src/components/Button/__snapshots__/Button.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,9 @@ exports[`Storyshots Design System/Button Async Button 1`] = `
>
<div>
Button inner text from event:

</div>
<div>
Fake response:

</div>
</div>
</div>
Expand Down Expand Up @@ -291,11 +289,9 @@ exports[`Storyshots Design System/Button Async Button 1`] = `
>
<div>
Button inner text from event:

</div>
<div>
Fake response:

</div>
</div>
</div>
Expand Down Expand Up @@ -328,11 +324,9 @@ exports[`Storyshots Design System/Button Async Button 1`] = `
>
<div>
Button inner text from event:

</div>
<div>
Fake response:

</div>
</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/components/Chart/BarChart/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ const BarChart: React.FC<Props> = ({ data }) => {

const tickColoringOptions = setColoringOptions((obj: Data) => obj.name);

console.log({ labelColoringOptions, tickColoringOptions });

return (
<WrappedChart
data={data}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,6 @@ exports[`Storyshots Design System/CheckBox CheckBox with Props 1`] = `
</span>
</label>
</span>

</span>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/components/Chip/__snapshots__/Chip.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ exports[`Storyshots Design System/Chip Read-Only Chips 1`] = `
<div
className="emotion-4"
>

KN
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4984,7 +4984,6 @@ exports[`Storyshots Design System/DatePicker DatePicker with Filter 1`] = `
>
Select Dates


</div>
</span>
</div>
Expand Down Expand Up @@ -5042,7 +5041,6 @@ exports[`Storyshots Design System/DatePicker DatePicker with Filter 1`] = `
<span
className="emotion-19"
>

<span
className="emotion-20"
data-testid="filter-selected-item-label"
Expand Down
12 changes: 0 additions & 12 deletions src/components/Menu/__snapshots__/Menu.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ exports[`Storyshots Design System/Menu Disabled Menu 1`] = `
<div
className="emotion-6"
>

TC
</div>
</span>
Expand Down Expand Up @@ -588,7 +587,6 @@ exports[`Storyshots Design System/Menu Menu with avatar and different button col
<div
className="emotion-6"
>

TC
</div>
</span>
Expand Down Expand Up @@ -703,7 +701,6 @@ exports[`Storyshots Design System/Menu Menu with avatar and different button col
<div
className="emotion-6"
>

<span
className="emotion-9"
onClick={[Function]}
Expand All @@ -712,7 +709,6 @@ exports[`Storyshots Design System/Menu Menu with avatar and different button col
className="emotion-26"
/>
</span>

</div>
</span>
<span
Expand Down Expand Up @@ -768,7 +764,6 @@ exports[`Storyshots Design System/Menu Menu with avatar and different button col
<div
className="emotion-35"
>

<span
className="emotion-9"
onClick={[Function]}
Expand All @@ -777,7 +772,6 @@ exports[`Storyshots Design System/Menu Menu with avatar and different button col
className="emotion-26"
/>
</span>

</div>
</span>
<span
Expand Down Expand Up @@ -1139,7 +1133,6 @@ exports[`Storyshots Design System/Menu Menu with option icon and different colou
<div
className="emotion-6"
>

<span
className="emotion-7"
onClick={[Function]}
Expand All @@ -1148,7 +1141,6 @@ exports[`Storyshots Design System/Menu Menu with option icon and different colou
className="emotion-8"
/>
</span>

</div>
</span>
<span
Expand Down Expand Up @@ -1204,7 +1196,6 @@ exports[`Storyshots Design System/Menu Menu with option icon and different colou
<div
className="emotion-6"
>

<span
className="emotion-7"
onClick={[Function]}
Expand All @@ -1213,7 +1204,6 @@ exports[`Storyshots Design System/Menu Menu with option icon and different colou
className="emotion-8"
/>
</span>

</div>
</span>
<span
Expand Down Expand Up @@ -1269,7 +1259,6 @@ exports[`Storyshots Design System/Menu Menu with option icon and different colou
<div
className="emotion-6"
>

<span
className="emotion-7"
onClick={[Function]}
Expand All @@ -1278,7 +1267,6 @@ exports[`Storyshots Design System/Menu Menu with option icon and different colou
className="emotion-8"
/>
</span>

</div>
</span>
<span
Expand Down
4 changes: 1 addition & 3 deletions src/components/Toast/__snapshots__/Toast.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ exports[`Storyshots Design System/Toast Generic Toast 1`] = `
"paddingTop": "8px",
}
}
>

</p>
/>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 9372e37

Please sign in to comment.