diff --git a/__tests__/index.js b/__tests__/index.js index 48a6e84..cfc488a 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -176,10 +176,10 @@ describe('other options', () => { const component = renderer.create() expect(component.toJSON()).toMatchSnapshot() // initial - await waitFor(10) + await waitFor(5) expect(component.toJSON()).toMatchSnapshot() // loading - await waitFor(20) + await waitFor(30) expect(component.toJSON()).toMatchSnapshot() // success }) @@ -192,7 +192,7 @@ describe('other options', () => { const component = renderer.create() expect(component.toJSON()).toMatchSnapshot() // initial - await waitFor(10) + await waitFor(5) expect(component.toJSON()).toMatchSnapshot() // loading await waitFor(20) diff --git a/src/index.js b/src/index.js index b710c5b..ce717a4 100644 --- a/src/index.js +++ b/src/index.js @@ -23,7 +23,7 @@ type Options = { chunkName?: string, timeout?: number, key?: Key, - onLoad: OnLoad + onLoad?: OnLoad } type Props = {