Skip to content

Commit

Permalink
More tests for #122
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 30, 2021
1 parent 379fc7b commit e26eb04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test-markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ test("svgShortCircuit and generateHTML: Issue #48", async t => {
svgShortCircuit: true,
dryRun: true,
});
t.is(stats.svg.length, 1);
t.is(stats.webp.length, 0);
t.is(stats.png.length, 0);
t.is(stats.svg[0].url, "/img/tZ4Kzy-sde-900.svg");

let html = eleventyImage.generateHTML(stats, {
alt: "Tiger",
Expand Down

0 comments on commit e26eb04

Please sign in to comment.