File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ test("ReactDOM needs to be called once", () => {
1111
1212test ( "The component Badge should return the exact HTML" , ( ) => {
1313 const tree = renderer . create ( ReactDOM . render . mock . calls [ 0 ] [ 0 ] ) . toJSON ( ) ;
14+ // throw tree
1415 expect ( tree ) . toMatchInlineSnapshot ( `
1516<button
1617 className="btn btn-primary"
1718 style={
18- Object {
19+ {
1920 "background": "black",
2021 "border": "1px solid yellow",
2122 "fontSize": "16px",
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ test("The component Badge should return the exact HTML", () => {
1515<button
1616 className="btn btn-primary"
1717 style={
18- Object {
18+ {
1919 "background": "yellow",
2020 "border": "none",
2121 "color": "black",
@@ -27,7 +27,7 @@ test("The component Badge should return the exact HTML", () => {
2727 <span
2828 className="badge badge-light"
2929 style={
30- Object {
30+ {
3131 "background": "red",
3232 "borderRadius": "50%",
3333 }
You can’t perform that action at this time.
0 commit comments