Skip to content

Commit

Permalink
test: Add unit test for components (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongrui authored and sunnywx committed Apr 22, 2019
1 parent 67e4bee commit 280cb6a
Show file tree
Hide file tree
Showing 145 changed files with 4,967 additions and 1,440 deletions.
49 changes: 0 additions & 49 deletions src/components/AppImages/index.jsx

This file was deleted.

56 changes: 0 additions & 56 deletions src/components/AppImages/index.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Base/Tooltip/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $bgcolor: $text-color;
&.active {
opacity: 1;
pointer-events: auto;
z-index: 3;
z-index: 4;
}

.arrow {
Expand Down
8 changes: 3 additions & 5 deletions src/components/Card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ export class Card extends PureComponent {
<Image src={icon} alt="Icon" iconSize={iconSize} iconLetter={name} />
</div>
<div className={styles.name}>{name}</div>
<div className={styles.desc} title={desc}>
{desc.split('\n').map((line, idx) => (
<p key={idx}>{line}</p>
))}
</div>
<pre className={styles.desc} title={desc}>
{desc}
</pre>
<div className={styles.attrs}>
<dl>
<dt className={styles.label}>{t('Service provider')}:</dt>
Expand Down
84 changes: 0 additions & 84 deletions src/components/DetailCard/AppCard.jsx

This file was deleted.

46 changes: 0 additions & 46 deletions src/components/DetailCard/CategoryCard.jsx

This file was deleted.

95 changes: 0 additions & 95 deletions src/components/DetailCard/RuntimeCard.jsx

This file was deleted.

Loading

0 comments on commit 280cb6a

Please sign in to comment.