Skip to content

Commit c8efd21

Browse files
committed
chore: fix tests
1 parent ab295eb commit c8efd21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/helpers/__tests__/format-default.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ describe('mapPropsForQueryError', () => {
3939
expect(result).toStrictEqual({});
4040
});
4141

42-
test('preserves "display" and "opacity" styles but no other style', () => {
42+
test('preserves "display: none" and "opacity: 0" styles but no other style', () => {
4343
const result = defaultMapProps({
44-
style: [{ flex: 1 }, { display: 'none', flex: 2 }, { opacity: 0.5 }],
44+
style: [{ flex: 1 }, { display: 'none', flex: 2 }, { opacity: 0 }],
4545
});
4646

4747
expect(result).toStrictEqual({
48-
style: { display: 'none', opacity: 0.5 },
48+
style: { display: 'none', opacity: 0 },
4949
});
5050
});
5151

0 commit comments

Comments
 (0)