This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(maps): render provider when map is ready
- Loading branch information
1 parent
f72e67e
commit b696a11
Showing
3 changed files
with
60 additions
and
38 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
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
38 changes: 32 additions & 6 deletions
38
packages/react-instantsearch-dom-maps/src/__tests__/__snapshots__/GoogleMaps.js.snap
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,11 +1,37 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`GoogleMaps expect render correctly with the map rendered 1`] = `"<div class=\\"ais-GeoSearch\\"><div class=\\"ais-GeoSearch-map\\"></div></div>"`; | ||
exports[`GoogleMaps expect render correctly with the map rendered 1`] = ` | ||
<div | ||
className="ais-GeoSearch" | ||
> | ||
<div | ||
className="ais-GeoSearch-map" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`GoogleMaps expect render correctly with the map rendered 2`] = `"<div class=\\"ais-GeoSearch\\"><div class=\\"ais-GeoSearch-map\\"></div><div>This is the children</div></div>"`; | ||
exports[`GoogleMaps expect render correctly without the map rendered 1`] = ` | ||
<div | ||
className="ais-GeoSearch" | ||
> | ||
<div | ||
className="ais-GeoSearch-map" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`GoogleMaps expect render correctly without the map rendered 1`] = `"<div class=\\"ais-GeoSearch\\"><div class=\\"ais-GeoSearch-map\\"></div></div>"`; | ||
exports[`GoogleMaps update expect to still render the children when shouldUpdate return false 1`] = ` | ||
<div | ||
className="children" | ||
> | ||
This is the children | ||
</div> | ||
`; | ||
|
||
exports[`GoogleMaps update expect to still render the children when shouldUpdate return false 1`] = `"<div class=\\"ais-GeoSearch\\"><div class=\\"ais-GeoSearch-map\\"></div><div>This is the children</div></div>"`; | ||
exports[`GoogleMaps update expect to still render the children when shouldUpdate return false 2`] = `"<div class=\\"ais-GeoSearch\\"><div class=\\"ais-GeoSearch-map\\"></div><div>This is the children updated</div></div>"`; | ||
exports[`GoogleMaps update expect to still render the children when shouldUpdate return false 2`] = ` | ||
<div | ||
className="children" | ||
> | ||
This is the children updated | ||
</div> | ||
`; |