From fb2234b444c735c11b38a291749f2e4703da7aec Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Fri, 2 Jul 2021 14:39:39 -0300 Subject: [PATCH] 17782: Fixes test. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- src/components/file-tree/file-thumbnail.test.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/file-tree/file-thumbnail.test.tsx b/src/components/file-tree/file-thumbnail.test.tsx index 29937468..3d93c890 100644 --- a/src/components/file-tree/file-thumbnail.test.tsx +++ b/src/components/file-tree/file-thumbnail.test.tsx @@ -12,10 +12,6 @@ import { combineReducers, createStore } from "redux"; configure({ adapter: new Adapter() }); -jest.mock('is-image', () => ({ - 'default': () => true, -})); - let store; describe("", () => { @@ -33,7 +29,7 @@ describe("", () => { })); file = { - name: 'test-image', + name: 'test-image.jpg', type: CollectionFileType.FILE, url: 'http://example.com/c=zzzzz-4zz18-0123456789abcde/t=v2/zzzzz-gj3su-0123456789abcde/xxxxxxtokenxxxxx/test-image.jpg', size: 300 @@ -42,6 +38,6 @@ describe("", () => { it("renders file thumbnail with proper src", () => { const fileThumbnail = mount(); - expect(fileThumbnail.html()).toBe('test-image'); + expect(fileThumbnail.html()).toBe('test-image.jpg'); }); }); -- 2.30.2