Skip to content

Commit

Permalink
[Maps] fix unhandled promise rejections in jest tests (elastic#112712) (
Browse files Browse the repository at this point in the history
elastic#112866)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
  • Loading branch information
kibanamachine and nreese authored Sep 22, 2021
1 parent ef8518d commit 1392c39
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ const mockLayer = {
hasErrors: () => {
return false;
},
supportsFitToBounds: () => {
return true;
},
} as unknown as ILayer;

const defaultProps = {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ const mockLayer = {
hasLegendDetails: () => {
return true;
},
supportsFitToBounds: () => {
return true;
},
} as unknown as ILayer;

const defaultProps = {
Expand Down

0 comments on commit 1392c39

Please sign in to comment.