// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
import * as React from "react";
import { shallow, configure } from "enzyme";
import { FileThumbnail } from "./file-thumbnail";
import { CollectionFileType } from '../../models/collection-file';
import * as Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
jest.mock('is-image', () => ({
'default': () => true,
}));
describe("", () => {
let file;
beforeEach(() => {
file = {
name: 'test-image',
type: CollectionFileType.FILE,
url: 'http://test.com/c=test-hash/t=test-token/test-token2/test-token3/test-image.jpg',
size: 300
};
});
it("renders file thumbnail with proper src", () => {
const fileThumbnail = shallow();
expect(fileThumbnail.html()).toBe('');
});
});