Skip to content

Commit 7a7dd7a

Browse files
committed
tests pass props
1 parent 07f6668 commit 7a7dd7a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

example/src/screens/playgroundScreen.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export default function PlaygroundScreen() {
3434
current={INITIAL_DATE}
3535
style={styles.calendar}
3636
horizontal
37+
pagingEnabled
38+
staticHeader
3739
/>
3840
);
3941
};

src/calendar/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,3 @@ Calendar.propTypes = {
308308
customHeader: PropTypes.any,
309309
allowSelectionOutOfRange: PropTypes.bool
310310
};
311-
Calendar.defaultProps = {
312-
enableSwipeMonths: false
313-
};

src/utils/__tests__/Playground.perf.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import React from 'react';
22
import {measurePerformance} from 'reassure';
33
import {Calendar, CalendarList} from '../../index';
44

5+
const INITIAL_DATE = '2022-07-07';
6+
57
describe('Playground testing', () => {
68
const TestCase = () => {
7-
return <Calendar />;
9+
return <Calendar current={INITIAL_DATE} />;
810
};
911
const TestCaseList = () => {
10-
return <CalendarList />;
12+
return <CalendarList current={INITIAL_DATE} />;
1113
};
1214

1315
it('calendar', async () => {

0 commit comments

Comments
 (0)