Skip to content

Commit

Permalink
Fix component of test of throwing with options.suspenseFallback
Browse files Browse the repository at this point in the history
  • Loading branch information
chenesan committed Apr 14, 2019
1 parent 173001f commit 3139d43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/enzyme-test-suite/test/ReactWrapper-spec.jsx
Expand Up @@ -1199,7 +1199,12 @@ describeWithDOM('mount', () => {

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

Expand Down

0 comments on commit 3139d43

Please sign in to comment.