Skip to content

Commit

Permalink
test(avatar): fixed avatar fallback test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Agrawal committed Dec 29, 2021
1 parent 88129d3 commit 96b811e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/Molecules/Avatar/Avatar.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ describe("Molecules/Avatar", () => {
const tree = render(
<ThemeProvider>
<Stack direction="horizontal" spacing="s">
<Avatar name="Rohit Agrawal" />
<Avatar backgroundColor="red" name="Rohit Agrawal" />
<Avatar
backgroundColor="red"
src="https://4kwallpapers.com/imas/wallpapers/macos-big-sur-apple-layers-fluidic-colorful-wwdc-stock-2560x1440-1455.jpg"
fallbackSource={{
uri: "https://cdn.segmentnext.com/wp-content/themes/segmentnext/images/no-image-available.jpg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ exports[`Molecules/Avatar passes the snapshot test for fallback support 1`] = `
style={
Object {
"alignItems": "center",
"backgroundColor": "#00ffff",
"backgroundColor": "#ff0000",
"borderRadius": 1000,
"display": "flex",
"height": 55,
Expand All @@ -1314,7 +1314,7 @@ exports[`Molecules/Avatar passes the snapshot test for fallback support 1`] = `
scaleFontSize={true}
style={
Object {
"color": "#1A2138",
"color": "#FFFFFF",
"display": "flex",
"fontFamily": "Poppins-Regular",
"fontSize": 18.4,
Expand Down Expand Up @@ -1355,7 +1355,7 @@ exports[`Molecules/Avatar passes the snapshot test for fallback support 1`] = `
style={
Object {
"alignItems": "center",
"backgroundColor": "#ff0000",
"backgroundColor": "#F7F9FC",
"borderBottomLeftRadius": undefined,
"borderBottomRightRadius": undefined,
"borderRadius": 1000,
Expand Down

0 comments on commit 96b811e

Please sign in to comment.