Skip to content

Commit 84f6c90

Browse files
committed
tests(info-row-divider): replace conditional guard with explicit assertion to ensure style check always runs
1 parent d2964d8 commit 84f6c90

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

app/components/Views/confirmations/components/UI/info-row-divider/info-row-divider.test.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ describe('InfoRowDivider', () => {
1212

1313
const result = toJSON();
1414
expect(result).toBeTruthy();
15-
if (result && !Array.isArray(result)) {
16-
expect(result.props.style).toEqual({
17-
backgroundColor: mockTheme.colors.border.muted,
18-
height: 1,
19-
marginLeft: -8,
20-
marginRight: -8,
21-
marginVertical: 8,
22-
});
23-
}
15+
expect(Array.isArray(result)).toBe(false);
16+
expect((result as any).props.style).toEqual({
17+
backgroundColor: mockTheme.colors.border.muted,
18+
height: 1,
19+
marginLeft: -8,
20+
marginRight: -8,
21+
marginVertical: 8,
22+
});
2423
});
2524
});

0 commit comments

Comments
 (0)