(element, style)
| 74 | * @param {{}} style |
| 75 | */ |
| 76 | export const expectElementToHaveStyle = (element, style) => { |
| 77 | const computedStyle = getComputedStyle(element); |
| 78 | for (let prop of Object.keys(style)) { |
| 79 | expect(computedStyle[prop]).toBe(style[prop]); |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | /** |
| 84 | * Asserts whether the currently rendered component has the expected styles. |
no outgoing calls
no test coverage detected