FIX: Don't load images that don't exist in test

This makes 404 requests and fills up the logs with junk
This commit is contained in:
Robin Ward
2020-07-17 14:12:47 -04:00
parent 0ecca3a2d2
commit f68ea29236
5 changed files with 22 additions and 25 deletions
@@ -24,8 +24,8 @@ componentTest("resolves short URLs", {
[
{
short_url: "upload://a.png",
url: "/uploads/default/original/3X/c/b/1.png",
short_path: "/uploads/short-url/a.png"
url: "/images/avatar.png",
short_path: "/images/d-logo-sketch.png"
}
]
];
@@ -38,9 +38,6 @@ componentTest("resolves short URLs", {
test(assert) {
const html = find(".post-body")[0].innerHTML.trim();
assert.equal(
html,
'<p><img src="/uploads/default/original/3X/c/b/1.png" alt="an image"></p>'
);
assert.equal(html, '<p><img src="/images/avatar.png" alt="an image"></p>');
}
});