Skip to content

Commit

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

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 committed 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.