( options: ScrollDistanceOptions, message = 'scroll accepts either a relative amount or --pixels, not both', )
| 14 | export type ScrollCommandOptions = ScrollDistanceOptions & ScrollTimingOptions; |
| 15 | |
| 16 | export function assertExclusiveScrollDistanceInputs( |
| 17 | options: ScrollDistanceOptions, |
| 18 | message = 'scroll accepts either a relative amount or --pixels, not both', |
| 19 | ): void { |
| 20 | if (options.amount !== undefined && options.pixels !== undefined) { |
| 21 | throw new AppError('INVALID_ARGS', message); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | export function normalizeScrollDurationMs( |
| 26 | durationMs: number | undefined, |
no outgoing calls
no test coverage detected