X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/00f3ff118197f498d1e8bb0f562058a8a59b7e04..765f6475a53ac7e635b737642ef375459324a117:/src/components/file-tree/file-thumbnail.test.tsx

diff --git a/src/components/file-tree/file-thumbnail.test.tsx b/src/components/file-tree/file-thumbnail.test.tsx
index a23bbcf9..3d93c890 100644
--- a/src/components/file-tree/file-thumbnail.test.tsx
+++ b/src/components/file-tree/file-thumbnail.test.tsx
@@ -2,20 +2,16 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from "react";
+import React from "react";
 import { configure, mount } from "enzyme";
 import { FileThumbnail } from "./file-thumbnail";
 import { CollectionFileType } from '../../models/collection-file';
-import * as Adapter from 'enzyme-adapter-react-16';
+import Adapter from 'enzyme-adapter-react-16';
 import { Provider } from "react-redux";
 import { combineReducers, createStore } from "redux";
 
 configure({ adapter: new Adapter() });
 
-jest.mock('is-image', () => ({
-    'default': () => true,
-}));
-
 let store;
 
 describe("<FileThumbnail />", () => {
@@ -33,7 +29,7 @@ describe("<FileThumbnail />", () => {
         }));
 
         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("<FileThumbnail />", () => {
 
     it("renders file thumbnail with proper src", () => {
         const fileThumbnail = mount(<Provider store={store}><FileThumbnail file={file} /></Provider>);
-        expect(fileThumbnail.html()).toBe('<img class="Component-thumbnail-1" alt="test-image" src="http://zzzzz-4zz18-0123456789abcde.collections.example.com/test-image.jpg?api_token=v2/zzzzz-gj3su-0123456789abcde/xxxxxxtokenxxxxx">');
+        expect(fileThumbnail.html()).toBe('<img class="Component-thumbnail-1" alt="test-image.jpg" src="http://zzzzz-4zz18-0123456789abcde.collections.example.com/test-image.jpg?api_token=v2/zzzzz-gj3su-0123456789abcde/xxxxxxtokenxxxxx">');
     });
 });
