diff --git a/test/test-markup.js b/test/test-markup.js
index e12173c..44c8a5c 100644
--- a/test/test-markup.js
+++ b/test/test-markup.js
@@ -10,7 +10,7 @@ test("Image markup (defaults)", async t => {
t.is(generateHTML(results, {
alt: ""
- }), ``);
+ }), ``);
});
test("Image service", async t => {
@@ -45,13 +45,13 @@ test("Image object (defaults)", async t => {
{
"source": {
type: "image/webp",
- srcset: "/img/e1d4b79f-1280.webp 1280w",
+ srcset: "/img/70DaY9n7K_-1280.webp 1280w",
}
},
{
"img": {
alt: "",
- src: "/img/e1d4b79f-1280.jpeg",
+ src: "/img/70DaY9n7K_-1280.jpeg",
width: 1280,
height: 853,
}
@@ -70,9 +70,9 @@ test("Image markup (two widths)", async t => {
alt: "",
sizes: "100vw",
}), [``].join(""));
});
@@ -95,7 +95,7 @@ test("Image markup (two formats)", async t => {
t.is(generateHTML(results, {
alt: ""
- }), ``);
+ }), ``);
});
test("Image markup (one format)", async t => {
@@ -107,7 +107,7 @@ test("Image markup (one format)", async t => {
t.is(generateHTML(results, {
alt: "",
sizes: "100vw"
- }), ``);
+ }), ``);
});
test("Image markup (auto format)", async t => {
@@ -119,7 +119,7 @@ test("Image markup (auto format)", async t => {
t.is(generateHTML(results, {
alt: "",
sizes: "100vw"
- }), ``);
+ }), ``);
});
test("Image markup (one format, two widths)", async t => {
@@ -132,7 +132,7 @@ test("Image markup (one format, two widths)", async t => {
t.is(generateHTML(results, {
alt: "",
sizes: "100vw"
- }), ``);
+ }), ``);
});
test("Image markup (throws on invalid object)", async t => {
@@ -160,8 +160,8 @@ test("Image markup (defaults, inlined)", async t => {
}, {
whitespaceMode: "block"
}), ``);
});
@@ -175,7 +175,7 @@ test("svgShortCircuit and generateHTML: Issue #48", async t => {
let html = eleventyImage.generateHTML(stats, {
alt: "Tiger",
});
- t.is(html, ``);
+ t.is(html, ``);
});
test("Filter out empty format arrays", async t => {
diff --git a/test/test.js b/test/test.js
index a3eb9ca..d55ef23 100644
--- a/test/test.js
+++ b/test/test.js
@@ -170,7 +170,7 @@ test("Use 'auto' format as original", async t => {
t.is(stats.auto, undefined);
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].outputPath, path.join("test/img/e1d4b79f-1280.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("test/img/70DaY9n7K_-1280.jpeg"));
t.is(stats.jpeg[0].width, 1280);
});
@@ -181,7 +181,7 @@ test("Try to use a width larger than original", async t => {
outputDir: "./test/img/"
});
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].outputPath, path.join("test/img/e1d4b79f-1280.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("test/img/70DaY9n7K_-1280.jpeg"));
t.is(stats.jpeg[0].width, 1280);
});
@@ -192,7 +192,7 @@ test("Try to use a width larger than original (two sizes)", async t => {
outputDir: "./test/img/"
});
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].outputPath, path.join("test/img/e1d4b79f-1280.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("test/img/70DaY9n7K_-1280.jpeg"));
t.is(stats.jpeg[0].width, 1280);
});
@@ -203,7 +203,7 @@ test("Try to use a width larger than original (with a null in there)", async t =
outputDir: "./test/img/"
});
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].outputPath, path.join("test/img/e1d4b79f-1280.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("test/img/70DaY9n7K_-1280.jpeg"));
t.is(stats.jpeg[0].width, 1280);
});
@@ -214,7 +214,7 @@ test("Just falsy width", async t => {
outputDir: "./test/img/"
});
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].outputPath, path.join("test/img/e1d4b79f-1280.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("test/img/70DaY9n7K_-1280.jpeg"));
t.is(stats.jpeg[0].width, 1280);
});
@@ -226,7 +226,7 @@ test("Use exact same width as original", async t => {
});
t.is(stats.jpeg.length, 1);
// breaking change in 0.5: always use width in filename
- t.is(stats.jpeg[0].outputPath, path.join("test/img/e1d4b79f-1280.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("test/img/70DaY9n7K_-1280.jpeg"));
t.is(stats.jpeg[0].width, 1280);
});
@@ -237,7 +237,7 @@ test("Try to use a width larger than original (statsSync)", t => {
});
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].url, "/img/e1d4b79f-1280.jpeg");
+ t.is(stats.jpeg[0].url, "/img/70DaY9n7K_-1280.jpeg");
t.is(stats.jpeg[0].width, 1280);
});
@@ -248,7 +248,7 @@ test("Use exact same width as original (statsSync)", t => {
});
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].url, "/img/e1d4b79f-1280.jpeg"); // no width in filename
+ t.is(stats.jpeg[0].url, "/img/70DaY9n7K_-1280.jpeg"); // no width in filename
t.is(stats.jpeg[0].width, 1280);
});
@@ -270,13 +270,13 @@ test("Use custom function to define file names", async (t) => {
});
t.is(stats.jpeg.length, 2);
- t.is(stats.jpeg[0].outputPath, path.join("test/img/bio-2017-e1d4b79f-600.jpeg"));
- t.is(stats.jpeg[0].url, "/img/bio-2017-e1d4b79f-600.jpeg");
- t.is(stats.jpeg[0].srcset, "/img/bio-2017-e1d4b79f-600.jpeg 600w");
+ t.is(stats.jpeg[0].outputPath, path.join("test/img/bio-2017-70DaY9n7K_-600.jpeg"));
+ t.is(stats.jpeg[0].url, "/img/bio-2017-70DaY9n7K_-600.jpeg");
+ t.is(stats.jpeg[0].srcset, "/img/bio-2017-70DaY9n7K_-600.jpeg 600w");
t.is(stats.jpeg[0].width, 600);
- t.is(stats.jpeg[1].outputPath, path.join("test/img/bio-2017-e1d4b79f-1280.jpeg"));
- t.is(stats.jpeg[1].url, "/img/bio-2017-e1d4b79f-1280.jpeg");
- t.is(stats.jpeg[1].srcset, "/img/bio-2017-e1d4b79f-1280.jpeg 1280w");
+ t.is(stats.jpeg[1].outputPath, path.join("test/img/bio-2017-70DaY9n7K_-1280.jpeg"));
+ t.is(stats.jpeg[1].url, "/img/bio-2017-70DaY9n7K_-1280.jpeg");
+ t.is(stats.jpeg[1].srcset, "/img/bio-2017-70DaY9n7K_-1280.jpeg 1280w");
t.is(stats.jpeg[1].width, 1280);
});
@@ -386,7 +386,7 @@ test("Sync by dimension with jpeg input (wrong dimensions, supplied are smaller
// this won’t upscale so it will miss out on higher resolution images but there won’t be any broken image URLs in the output
t.is(stats.jpeg.length, 1);
- t.is(stats.jpeg[0].outputPath, path.join("img/e1d4b79f-164.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("img/70DaY9n7K_-164.jpeg"));
});
test("Sync by dimension with jpeg input (wrong dimensions, supplied are larger than real)", t => {
@@ -396,8 +396,8 @@ test("Sync by dimension with jpeg input (wrong dimensions, supplied are larger t
});
t.is(stats.jpeg.length, 2);
- t.is(stats.jpeg[0].outputPath, path.join("img/e1d4b79f-164.jpeg"));
- t.is(stats.jpeg[1].outputPath, path.join("img/e1d4b79f-328.jpeg"));
+ t.is(stats.jpeg[0].outputPath, path.join("img/70DaY9n7K_-164.jpeg"));
+ t.is(stats.jpeg[1].outputPath, path.join("img/70DaY9n7K_-328.jpeg"));
});
test("Keep a cache, reuse with same file names and options", async t => {
@@ -545,14 +545,14 @@ test("Using `jpg` in formats Issue #64", async t => {
t.deepEqual(stats, {
jpeg: [
{
- filename: 'e1d4b79f-1280.jpeg',
+ filename: '70DaY9n7K_-1280.jpeg',
format: 'jpeg',
height: 853,
- outputPath: path.join('img/e1d4b79f-1280.jpeg'),
+ outputPath: path.join('img/70DaY9n7K_-1280.jpeg'),
size: 276231,
sourceType: "image/jpeg",
- srcset: '/img/e1d4b79f-1280.jpeg 1280w',
- url: '/img/e1d4b79f-1280.jpeg',
+ srcset: '/img/70DaY9n7K_-1280.jpeg 1280w',
+ url: '/img/70DaY9n7K_-1280.jpeg',
width: 1280,
},
]