X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3c7e3cdc547ad5468421e1c049daa94b0d4b8bc0..59c625e23ea98288ed11674f6218b998fc807307:/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 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('
');
+ expect(fileThumbnail.html()).toBe('
');
});
});