-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update position and radius when props change to fix #51
- Loading branch information
Clement Allen
committed
Jun 17, 2020
1 parent
5bdb9a4
commit ce3a1f9
Showing
5 changed files
with
5,287 additions
and
4,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
const setStartAngleSpy = jest.fn(); | ||
const setStopAngleSpy = jest.fn(); | ||
const setRadiusSpy = jest.fn(); | ||
const setLatLngSpy = jest.fn(); | ||
const setDirectionSpy = jest.fn(); | ||
|
||
export default jest.fn().mockImplementation(() => { | ||
return { | ||
setStartAngle: setStartAngleSpy, | ||
setStopAngle: setStopAngleSpy, | ||
setRadius: setRadiusSpy, | ||
setLatLng: setLatLngSpy, | ||
setDirection: setDirectionSpy, | ||
_layerAdd: () => {} | ||
}; | ||
}); | ||
|
||
export { setStartAngleSpy, setStopAngleSpy, setDirectionSpy }; | ||
export { | ||
setStartAngleSpy, | ||
setStopAngleSpy, | ||
setRadiusSpy, | ||
setLatLngSpy, | ||
setDirectionSpy | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.