Skip to content

Commit

Permalink
test(BTS-152): new snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Oliveira committed Mar 26, 2019
1 parent 2d44df4 commit d209ca7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Alert/Alert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const getStylesBySkin = skin => {
const colorSchema = Colors[colorName];

return `
${colorSchema[900] && `color: ${colorSchema[900]}`};
color: ${colorSchema[900] ? colorSchema[900] : 'inherit'};
background-color: ${colorSchema[200]};
border: ${BORDER_SIZE} solid ${colorSchema[500]};
Expand Down
12 changes: 9 additions & 3 deletions components/Alert/__snapshots__/Alert.unit.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ exports[`Alert component Should match the snapshot of a simple alert 1`] = `
border-radius: 8px;
box-sizing: border-box;
padding: 11px 16px;
color: undefined;
color: inherit;
background-color: #e5edfc;
border: 1.5px solid #1355d0;
}
Expand All @@ -132,6 +132,7 @@ exports[`Alert component Should match the snapshot of a simple alert 1`] = `
<div
className="c0"
role="alert"
>
<div
className="c1 c2"
Expand Down Expand Up @@ -280,7 +281,7 @@ exports[`Alert component When you set a alert custom icon Should match the snaps
border-radius: 8px;
box-sizing: border-box;
padding: 11px 16px;
color: undefined;
color: inherit;
background-color: #e5edfc;
border: 1.5px solid #1355d0;
}
Expand All @@ -296,6 +297,7 @@ exports[`Alert component When you set a alert custom icon Should match the snaps
<div
className="c0"
role="alert"
>
<div
className="c1 c2"
Expand Down Expand Up @@ -455,7 +457,7 @@ exports[`Alert component When you set a different skin Should match a skin snaps
border-radius: 8px;
box-sizing: border-box;
padding: 11px 16px;
color: undefined;
color: inherit;
background-color: #e5edfc;
border: 1.5px solid #1355d0;
}
Expand All @@ -471,6 +473,7 @@ exports[`Alert component When you set a different skin Should match a skin snaps
<div
className="c0"
role="alert"
>
<div
className="c1 c2"
Expand Down Expand Up @@ -644,6 +647,7 @@ exports[`Alert component When you set a different skin Should match a skin snaps
<div
className="c0"
role="alert"
>
<div
className="c1 c2"
Expand Down Expand Up @@ -826,6 +830,7 @@ exports[`Alert component When you set a different skin Should match a skin snaps
<div
className="c0"
role="alert"
>
<div
className="c1 c2"
Expand Down Expand Up @@ -1017,6 +1022,7 @@ exports[`Alert component When you set a different skin Should match a skin snaps
<div
className="c0"
role="alert"
>
<div
className="c1 c2"
Expand Down

0 comments on commit d209ca7

Please sign in to comment.