mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 13:51:19 +00:00
fix tests
This commit is contained in:
parent
8d782342a1
commit
09bc56bbd2
1 changed files with 1 additions and 5 deletions
|
@ -278,7 +278,6 @@ test("Make regular post, and give it a custom thumbnail", async () => {
|
|||
p => p.post_view.post.thumbnail_url != undefined,
|
||||
);
|
||||
expect(post.post_view.post.url).toBe(wikipediaUrl);
|
||||
expect(post.post_view.post.thumbnail_url).toBeDefined();
|
||||
// Make sure it uses custom thumbnail
|
||||
expect(post.post_view.post.thumbnail_url).toBe(upload1.url);
|
||||
});
|
||||
|
@ -307,9 +306,6 @@ test("Create an image post, and make sure a custom thumbnail doesnt overwrite it
|
|||
p => p.post_view.post.thumbnail_url != undefined,
|
||||
);
|
||||
expect(post.post_view.post.url).toBe(upload1.url);
|
||||
expect(post.post_view.post.url).toBe(upload1.url);
|
||||
// Make sure the custom thumbnail is ignored
|
||||
expect(post.post_view.post.thumbnail_url).toBe(
|
||||
post.post_view.post.thumbnail_url,
|
||||
);
|
||||
expect(post.post_view.post.thumbnail_url == upload2.url).toBe(false);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue