Skip to content

Commit

Permalink
fix($flow): made onLoad optional
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey committed Jun 7, 2017
1 parent c87a5dd commit 860bf51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ describe('other options', () => {
const component = renderer.create(<Component />)
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
})

Expand All @@ -192,7 +192,7 @@ describe('other options', () => {
const component = renderer.create(<Component />)
expect(component.toJSON()).toMatchSnapshot() // initial

await waitFor(10)
await waitFor(5)
expect(component.toJSON()).toMatchSnapshot() // loading

await waitFor(20)
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Options<Props> = {
chunkName?: string,
timeout?: number,
key?: Key<Props>,
onLoad: OnLoad
onLoad?: OnLoad
}

type Props = {
Expand Down

0 comments on commit 860bf51

Please sign in to comment.