Skip to content

Commit

Permalink
refactor(invocatioTraceDescription): remove redundant check.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Nov 13, 2024
1 parent f8eb3ea commit 749ecf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detox/src/utils/invocationTraceDescriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
adjustSliderToPosition: (newPosition) => `adjust slider to position ${newPosition}`,
clearText: () => 'clear input text',
getAttributes: () => 'get element attributes',
tap: (point) => `tap${point !== null ? ` at ${JSON.stringify(point)}` : ''}`,
tap: (point) => `tap at ${JSON.stringify(point)}`,
longPress: (point, duration) => `long press${duration !== null ? ` for ${duration}ms` : ''}${point !== null ? ` at ${JSON.stringify(point)}` : ''}`,
longPressAndDrag: (duration, startX, startY, targetElement, endX, endY, speed, holdDuration) =>
`long press and drag from ${startX}, ${startY} to ${endX}, ${endY} with speed ${speed} and hold duration ${holdDuration}`,
Expand Down

0 comments on commit 749ecf7

Please sign in to comment.