Skip to content

Commit

Permalink
[Maps] fix unhandled promise rejections in jest tests (#112712)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
nreese and kibanamachine authored Sep 22, 2021
1 parent 23c8299 commit 5524938
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 5524938

Please sign in to comment.