From bcf9924a31663eca2a6c9ea7114ce4efc8b386d1 Mon Sep 17 00:00:00 2001 From: Fakiolas Marios Date: Wed, 18 Apr 2018 23:00:20 +0300 Subject: [PATCH] set delay by default to 0 --- README.md | 2 +- lib/__tests__/react-loading.spec.jsx | 4 ++-- lib/react-loading.jsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4558ec0..58681c6 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ export default Example; |:------:|:------:|:---------------:| | type | String | balls | | color | String | `#ffffff` | -| delay | Number | 1000 (msecs) | +| delay | Number | 0 (msecs) | | height | Number | 64 (px) | | width | Number | 64 (px) | | className | String | `''` | diff --git a/lib/__tests__/react-loading.spec.jsx b/lib/__tests__/react-loading.spec.jsx index 91b61b7..e88b840 100644 --- a/lib/__tests__/react-loading.spec.jsx +++ b/lib/__tests__/react-loading.spec.jsx @@ -19,13 +19,13 @@ describe('test Loading component', () => { }); it('delayed key in state should be equal to false if prop delay is 0', () => { - const enzymeWrapper = shallow(); + const enzymeWrapper = shallow(); expect(enzymeWrapper.state('delayed')).toEqual(false); }); it('delayed in state should be truthy when props delay is bigger than 0', () => { - const enzymeWrapper = shallow(); + const enzymeWrapper = shallow(); expect(enzymeWrapper.state('delayed')).toEqual(true); }); diff --git a/lib/react-loading.jsx b/lib/react-loading.jsx index 8d65616..c7c86ca 100644 --- a/lib/react-loading.jsx +++ b/lib/react-loading.jsx @@ -14,7 +14,7 @@ export default class Loading extends Component { static defaultProps = { color: '#fff', - delay: 1000, + delay: 0, type: 'balls', height: 64, width: 64,