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:
@@ -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>');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user