mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[functionalTests] implement common.tryMethod() helper
This commit is contained in:
parent
7d960a1b77
commit
69fb068d55
1 changed files with 4 additions and 0 deletions
|
@ -254,6 +254,10 @@ export default class Common {
|
|||
return Try.try(block);
|
||||
}
|
||||
|
||||
tryMethod(object, method, ...args) {
|
||||
return this.try(() => object[method](...args));
|
||||
}
|
||||
|
||||
log(...args) {
|
||||
Log.log(...args);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue