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
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
nreese and kibanamachine committed Sep 22, 2021
1 parent 2595d2f commit 4f0195b
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 4f0195b

Please sign in to comment.