Skip to content

Commit

Permalink
Fix export property name
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Jan 30, 2024
1 parent 0bce2ad commit 50c8822
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/components/__tests__/calendarExport.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('useCalendarExport', () => {
expect(events[0].transp).toBe('OPAQUE');
expect(events[0].productId).toBe('ajuvonen/getfit');
expect(events[0].classification).toBe('PRIVATE');
expect(events[0].calname).toBe('Test Schedule');
expect(events[0].calName).toBe('Test Schedule');
expect(events[0].start).toEqual([2024, 1, 1, 9, 0]);

// Assertions for the second activity
Expand All @@ -142,7 +142,7 @@ describe('useCalendarExport', () => {
expect(events[1].transp).toBe('OPAQUE');
expect(events[1].productId).toBe('ajuvonen/getfit');
expect(events[1].classification).toBe('PRIVATE');
expect(events[1].calname).toBe('Test Schedule');
expect(events[1].calName).toBe('Test Schedule');
expect(events[1].start).toEqual([2024, 1, 2, 9, 0]);

// Assertions for the third activity
Expand All @@ -156,7 +156,7 @@ describe('useCalendarExport', () => {
expect(events[2].transp).toBe('OPAQUE');
expect(events[2].productId).toBe('ajuvonen/getfit');
expect(events[2].classification).toBe('PRIVATE');
expect(events[2].calname).toBe('Test Schedule');
expect(events[2].calName).toBe('Test Schedule');
expect(events[2].start).toEqual([2024, 1, 2, 9, 30]);

// Assertions for the fourth activity
Expand All @@ -170,7 +170,7 @@ describe('useCalendarExport', () => {
expect(events[3].transp).toBe('OPAQUE');
expect(events[3].productId).toBe('ajuvonen/getfit');
expect(events[3].classification).toBe('PRIVATE');
expect(events[3].calname).toBe('Test Schedule');
expect(events[3].calName).toBe('Test Schedule');
expect(events[3].start).toEqual([2024, 1, 14, 9, 0]);

// Assertions for the fifth activity
Expand All @@ -184,7 +184,7 @@ describe('useCalendarExport', () => {
expect(events[4].transp).toBe('OPAQUE');
expect(events[4].productId).toBe('ajuvonen/getfit');
expect(events[4].classification).toBe('PRIVATE');
expect(events[4].calname).toBe('Test Schedule');
expect(events[4].calName).toBe('Test Schedule');
expect(events[4].start).toEqual([2024, 1, 14, 10, 0]);
});

Expand Down Expand Up @@ -246,7 +246,7 @@ describe('useCalendarExport', () => {
expect(events[0].transp).toBe('OPAQUE');
expect(events[0].productId).toBe('ajuvonen/getfit');
expect(events[0].classification).toBe('PRIVATE');
expect(events[0].calname).toBe('Test Schedule');
expect(events[0].calName).toBe('Test Schedule');
expect(events[0].start).toEqual([2024, 1, 1, 23, 30]);

// Assertions for the second activity
Expand All @@ -260,7 +260,7 @@ describe('useCalendarExport', () => {
expect(events[1].transp).toBe('OPAQUE');
expect(events[1].productId).toBe('ajuvonen/getfit');
expect(events[1].classification).toBe('PRIVATE');
expect(events[1].calname).toBe('Test Schedule');
expect(events[1].calName).toBe('Test Schedule');
expect(events[1].start).toEqual([2024, 1, 2, 0, 30]);
});

Expand Down Expand Up @@ -299,6 +299,6 @@ describe('useCalendarExport', () => {
const events = await createTestComponent(mockSettings, mockWeeks);

expect(events).toHaveLength(1);
expect(events[0].calname).toBe('TrainingSchedule');
expect(events[0].calName).toBe('TrainingSchedule');
});
});
2 changes: 1 addition & 1 deletion src/hooks/calendarExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function useCalendarExport() {
transp: 'OPAQUE',
productId: 'ajuvonen/getfit',
classification: 'PRIVATE',
calname: settings.value.name || t('export.filename'),
calName: settings.value.name || t('export.filename'),
} as CalendarEvent;
},
);
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export type CalendarEvent = {
transp: 'OPAQUE';
productId: 'ajuvonen/getfit';
classification: 'PRIVATE';
calname: string;
calName: string;
};

0 comments on commit 50c8822

Please sign in to comment.