Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Sep 8, 2022
1 parent e3284af commit 9d89a39
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ function ImageWithMessage({ id, idToCount, setIdToCount, ...props }) {
count++
idToCount[id] = count
setIdToCount(idToCount)
const nodeName = img.nodeName.toLocaleLowerCase()
setMsg(
`loaded ${count} ${
img instanceof Image ? 'img' : ''
}${id} with dimensions ${naturalWidth}x${naturalHeight}`
`loaded ${count} ${nodeName}${id} with dimensions ${naturalWidth}x${naturalHeight}`
)
}}
{...props}
Expand Down

0 comments on commit 9d89a39

Please sign in to comment.