Skip to content

Commit

Permalink
fix: upgrade failing snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Trancever committed Apr 15, 2019
1 parent 9eeb8e2 commit 61047c4
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 30 deletions.
42 changes: 28 additions & 14 deletions src/components/__tests__/__snapshots__/Banner.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ exports[`renders hidden banner, without action buttons and without image 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand Down Expand Up @@ -161,7 +162,8 @@ exports[`renders visible banner, with action buttons and with image 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand Down Expand Up @@ -244,7 +246,8 @@ exports[`renders visible banner, with action buttons and with image 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand All @@ -260,10 +263,12 @@ exports[`renders visible banner, with action buttons and with image 1`] = `
},
Object {
"color": "#6200ee",
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
Object {
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
],
]
Expand Down Expand Up @@ -330,7 +335,8 @@ exports[`renders visible banner, with action buttons and without image 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand Down Expand Up @@ -413,7 +419,8 @@ exports[`renders visible banner, with action buttons and without image 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand All @@ -429,10 +436,12 @@ exports[`renders visible banner, with action buttons and without image 1`] = `
},
Object {
"color": "#6200ee",
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
Object {
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
],
]
Expand Down Expand Up @@ -503,7 +512,8 @@ exports[`renders visible banner, with action buttons and without image 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand All @@ -519,10 +529,12 @@ exports[`renders visible banner, with action buttons and without image 1`] = `
},
Object {
"color": "#6200ee",
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
Object {
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
],
]
Expand Down Expand Up @@ -610,7 +622,8 @@ exports[`renders visible banner, without action buttons and with image 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand Down Expand Up @@ -688,7 +701,8 @@ exports[`renders visible banner, without action buttons and without image 1`] =
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand Down
6 changes: 4 additions & 2 deletions src/components/__tests__/__snapshots__/ListItem.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ exports[`renders list item with custom title and description styles 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand All @@ -76,7 +77,8 @@ exports[`renders list item with custom title and description styles 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand Down
40 changes: 32 additions & 8 deletions src/components/__tests__/__snapshots__/ListSection.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,22 @@ exports[`renders list section with subheader 1`] = `
},
"dark": false,
"fonts": Object {
"light": "HelveticaNeue-Light",
"medium": "HelveticaNeue-Medium",
"regular": "Helvetica Neue",
"thin": "HelveticaNeue-Thin",
"light": Object {
"fontFamily": "System",
"fontWeight": "300",
},
"medium": Object {
"fontFamily": "System",
"fontWeight": "500",
},
"regular": Object {
"fontFamily": "System",
"fontWeight": "400",
},
"thin": Object {
"fontFamily": "System",
"fontWeight": "100",
},
},
"roundness": 4,
}
Expand Down Expand Up @@ -340,10 +352,22 @@ exports[`renders list section without subheader 1`] = `
},
"dark": false,
"fonts": Object {
"light": "HelveticaNeue-Light",
"medium": "HelveticaNeue-Medium",
"regular": "Helvetica Neue",
"thin": "HelveticaNeue-Thin",
"light": Object {
"fontFamily": "System",
"fontWeight": "300",
},
"medium": Object {
"fontFamily": "System",
"fontWeight": "500",
},
"regular": Object {
"fontFamily": "System",
"fontWeight": "400",
},
"thin": Object {
"fontFamily": "System",
"fontWeight": "100",
},
},
"roundness": 4,
}
Expand Down
18 changes: 12 additions & 6 deletions src/components/__tests__/__snapshots__/Menu.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ exports[`renders not visible menu 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand All @@ -77,10 +78,12 @@ exports[`renders not visible menu 1`] = `
undefined,
Object {
"color": "#6200ee",
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
Object {
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
],
]
Expand Down Expand Up @@ -157,7 +160,8 @@ exports[`renders visible menu 1`] = `
Array [
Object {
"color": "#000000",
"fontFamily": "Helvetica Neue",
"fontFamily": "System",
"fontWeight": "400",
"textAlign": "left",
"writingDirection": "ltr",
},
Expand All @@ -171,10 +175,12 @@ exports[`renders visible menu 1`] = `
undefined,
Object {
"color": "#6200ee",
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
Object {
"fontFamily": "HelveticaNeue-Medium",
"fontFamily": "System",
"fontWeight": "500",
},
],
]
Expand Down

0 comments on commit 61047c4

Please sign in to comment.