Skip to content

Commit

Permalink
small fix for runtime test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrycjakalinska committed Dec 12, 2024
1 parent 64a9e7a commit 6d05428
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions apps/common-app/src/examples/RuntimeTests/ReJest/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,11 @@ export type TestSuite = {
decorator?: DescribeDecorator | null;
};

export type ValidPropNames =
| 'zIndex'
| 'opacity'
| 'width'
| 'height'
| 'top'
| 'left'
| 'backgroundColor'
| 'boxShadow';
export type ValidPropNames = 'zIndex' | 'opacity' | 'width' | 'height' | 'top' | 'left' | 'backgroundColor';

export function isValidPropName(propName: string): propName is ValidPropNames {
'worklet';
return ['zIndex', 'opacity', 'width', 'height', 'top', 'left', 'backgroundColor', 'boxShadow'].includes(propName);
return ['zIndex', 'opacity', 'width', 'height', 'top', 'left', 'backgroundColor'].includes(propName);
}

export enum ComparisonMode {
Expand Down

0 comments on commit 6d05428

Please sign in to comment.