Skip to content

Commit

Permalink
Add role attribute to embedded image tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwmx committed Jun 14, 2024
1 parent 885f6d1 commit eb113d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/export.bats
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ HEREDOC
printf "\${status}: '%s'\\n" "${status}"
printf "\${output}: '%s'\\n" "${output}"

[[ "${output}" =~ \<p\>\<img\ src=\"data:image/png\;base64,iVBORw0KGgoAAAA ]]
[[ "${output}" =~ \<p\>\<img\ role=\"img\"\ src=\"data:image/png\;base64,iVBORw0KGgoAAAA ]]

run ! diff \
<(printf "%s\\n" "${output}") \
Expand Down Expand Up @@ -127,7 +127,7 @@ HEREDOC
printf "\${status}: '%s'\\n" "${status}"
printf "\${output}: '%s'\\n" "${output}"

[[ "$(cat "${_TMP_DIR}/example.html")" =~ \<p\>\<img\ src=\"data:image/png\;base64,iVBORw0KGgoAAAA ]]
[[ "$(cat "${_TMP_DIR}/example.html")" =~ \<p\>\<img\ role=\"img\"\ src=\"data:image/png\;base64,iVBORw0KGgoAAAA ]]
}

# existing file ###############################################################
Expand Down

0 comments on commit eb113d9

Please sign in to comment.