Skip to content

Commit

Permalink
Try to fix coverage by removing change of mount renderer in adapter 16
Browse files Browse the repository at this point in the history
  • Loading branch information
chenesan committed Apr 14, 2019
1 parent 3139d43 commit 080187c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions packages/enzyme-adapter-react-16/src/ReactSixteenAdapter.js
Expand Up @@ -388,9 +388,6 @@ class ReactSixteenAdapter extends EnzymeAdapter {

createMountRenderer(options) {
assertDomAvailable('mount');
if (has(options, 'suspenseFallback')) {
throw new TypeError('`suspenseFallback` is not supported by the `mount` renderer');
}
if (FiberTags === null) {
// Requires DOM.
FiberTags = detectFiberTags();
Expand Down
10 changes: 0 additions & 10 deletions packages/enzyme-test-suite/test/ReactWrapper-spec.jsx
Expand Up @@ -1196,16 +1196,6 @@ describeWithDOM('mount', () => {
</Suspense>
</SuspenseComponent>`);
});

it('throws if options.suspenseFallback is specified', () => {
const LazyComponent = lazy(fakeDynamicImport(DynamicComponent));
const SuspenseComponent = () => (
<Suspense fallback={<Fallback />}>
<LazyComponent />
</Suspense>
);
expect(() => mount(<SuspenseComponent />, { suspenseFallback: false })).to.throw();
});
});

describe('.mount()', () => {
Expand Down

0 comments on commit 080187c

Please sign in to comment.