Skip to content

Commit

Permalink
ts return
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsongl committed Nov 18, 2019
1 parent ea8e0c6 commit a7d409c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x-pack/test/functional/page_objects/lens_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ export function LensPageProvider({ getService, getPageObjects }: FtrProviderCont
* Move the date filter to the specified time range, defaults to
* a range that has data in our dataset.
*/
goToTimeRange(
fromTime: string = PageObjects.timePicker.defaultStartTime,
toTime: string = PageObjects.timePicker.defaultEndTime
) {
goToTimeRange(fromTime?: string, toTime?: string) {
fromTime = fromTime || PageObjects.timePicker.defaultStartTime;
toTime = toTime || PageObjects.timePicker.defaultEndTime;
return PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
},

Expand Down

0 comments on commit a7d409c

Please sign in to comment.