@mattburlage/react-file-viewer
Version:
Extendable file viewer for web
20 lines (16 loc) • 484 B
JavaScript
// Copyright (c) 2017 PlanGrid, Inc.
import React from 'react';
import { mount } from 'enzyme';
import FileViewer from 'components/file-viewer';
describe('file-viewer', () => {
it('renders without crashing', () => {
mount(
<FileViewer fileType='fake' filePath='fake/path' />
);
});
it('renders without crashing with visibility check disabled', () => {
mount(
<FileViewer fileType='fake' filePath='fake/path' disableVisibilityCheck />
);
});
});