(
node: HTMLDivElement = getCaptureNode(),
options: Options = {},
)
| 141 | } |
| 142 | |
| 143 | export async function renderAndCheck( |
| 144 | node: HTMLDivElement = getCaptureNode(), |
| 145 | options: Options = {}, |
| 146 | ) { |
| 147 | return toPng(node, options).then(check) |
| 148 | } |
| 149 | |
| 150 | export function compareToRefImage(sourceData: ImageData, threshold = 0.1) { |
| 151 | const ref = getReferenceImage() |
nothing calls this directly
no test coverage detected
searching dependent graphs…