UNPKG

@mattburlage/react-file-viewer

Version:
20 lines (16 loc) 484 B
// 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 /> ); }); });