diff --git a/src/html.js b/src/html.js index adb6de5..27b9fe2 100644 --- a/src/html.js +++ b/src/html.js @@ -79,9 +79,9 @@ const addBody = ({ url, headers, html }) => { if (isMime(contentType, 'image')) { element = `` } else if (isMime(contentType, 'video')) { - element = `` + element = `` } else if (isMime(contentType, 'audio')) { - element = `` + element = `` } else if (mimeExtension(contentType) === 'json') { element = `
${html}
` } diff --git a/test/html/snapshots/index.js.md b/test/html/snapshots/index.js.md index ab5c75e..c1df5b5 100644 --- a/test/html/snapshots/index.js.md +++ b/test/html/snapshots/index.js.md @@ -89,7 +89,9 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ - ␊ + ␊ ` ## add video markup @@ -103,7 +105,9 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ - ␊ + ␊ ` ## '`rewriteCssUrls` don't modify html markup diff --git a/test/html/snapshots/index.js.snap b/test/html/snapshots/index.js.snap index 84a191f..2a80441 100644 Binary files a/test/html/snapshots/index.js.snap and b/test/html/snapshots/index.js.snap differ diff --git a/test/snapshots/index.js.md b/test/snapshots/index.js.md index 65f4211..4937dc8 100644 --- a/test/snapshots/index.js.md +++ b/test/snapshots/index.js.md @@ -16,7 +16,9 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ - ␊ + ␊ ` ## from image URL @@ -45,7 +47,9 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ - ␊ + ␊ ` ## from bad SSL URL diff --git a/test/snapshots/index.js.snap b/test/snapshots/index.js.snap index a50a7fb..32962e0 100644 Binary files a/test/snapshots/index.js.snap and b/test/snapshots/index.js.snap differ