Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurie committed Dec 1, 2020
1 parent 46a711c commit b805afc
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@ describe(`GatsbyImage server`, () => {
expect((wrapper as HTMLElement).style).toMatchInlineSnapshot(`
CSSStyleDeclaration {
"0": "position",
"1": "overflow",
"_importants": Object {
"overflow": undefined,
"position": undefined,
},
"_length": 1,
"_length": 2,
"_onChange": [Function],
"_values": Object {
"position": "relative",
"overflow": "hidden",
"position": "relative",
},
}
`)
Expand All @@ -96,19 +98,21 @@ describe(`GatsbyImage server`, () => {
expect((wrapper as HTMLElement).style).toMatchInlineSnapshot(`
CSSStyleDeclaration {
"0": "position",
"1": "width",
"2": "height",
"1": "overflow",
"2": "width",
"3": "height",
"_importants": Object {
"height": undefined,
"overflow": undefined,
"position": undefined,
"width": undefined,
},
"_length": 3,
"_length": 4,
"_onChange": [Function],
"_values": Object {
"height": "100px",
"position": "relative",
"overflow": "hidden",
"position": "relative",
"width": "100px",
},
}
Expand Down Expand Up @@ -136,17 +140,19 @@ describe(`GatsbyImage server`, () => {
expect((wrapper as HTMLElement).style).toMatchInlineSnapshot(`
CSSStyleDeclaration {
"0": "position",
"1": "display",
"1": "overflow",
"12: "display",
"_importants": Object {
"display": undefined,
"overflow": undefined,
"position": undefined,
},
"_length": 2,
"_length": 3,
"_onChange": [Function],
"_values": Object {
"display": "inline-block",
"position": "relative",
"overflow": "hidden",
"position": "relative",
},
}
`)
Expand Down

0 comments on commit b805afc

Please sign in to comment.