From 09bc56bbd2236bd93192ec79ea2523ba1815a73b Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 12 Apr 2024 12:16:24 +0200 Subject: [PATCH] fix tests --- api_tests/src/image.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api_tests/src/image.spec.ts b/api_tests/src/image.spec.ts index 6816bbb43..4612be751 100644 --- a/api_tests/src/image.spec.ts +++ b/api_tests/src/image.spec.ts @@ -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); });