-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync upcoming events component with API and hack work around for apos… (
#46) * sync upcoming events component with API and hack work around for apostrophes in JSON * track hack work around
- Loading branch information
1 parent
a6945a1
commit c13032d
Showing
4 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
const SINGLE_EVENT = [{ | ||
title: 'Tuesdays Tunes Season 3 - Premier!', | ||
timestamp: Date.now() + 300000, | ||
title: 'Tuesday\'s Tunes Season 3 - Premier!', | ||
startTime: Date.now() + 300000, | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.', | ||
link: 'http://www.facebook.com/' | ||
}]; | ||
|
||
// includes testing for multiple months, events list "overflow", and out of order events | ||
const MULTIPLE_EVENTS = [{ | ||
title: 'Tuesdays Tunes Season 3 - Episode 1', | ||
timestamp: SINGLE_EVENT[0].timestamp + (86400000 * 15), | ||
title: 'Tuesday\'s Tunes Season 3 - Episode 1', | ||
startTime: SINGLE_EVENT[0].startTime + (86400000 * 15), | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.', | ||
link: 'http://www.facebook.com/' | ||
}, { | ||
...SINGLE_EVENT[0] | ||
}, { | ||
title: 'Tuesdays Tunes Season 3 - Episode 2', | ||
timestamp: SINGLE_EVENT[0].timestamp + (86400000 * 30), | ||
title: 'Tuesday\'s Tunes Season 3 - Episode 2', | ||
startTime: SINGLE_EVENT[0].startTime + (86400000 * 30), | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.', | ||
link: 'http://www.facebook.com/' | ||
}, { | ||
title: 'Tuesdays Tunes Season 3 - Teaser Trailer', | ||
timestamp: SINGLE_EVENT[0].timestamp - (86400000 * 5), | ||
title: 'Tuesday\'s Tunes Season 3 - Teaser Trailer', | ||
startTime: SINGLE_EVENT[0].startTime - (86400000 * 5), | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.', | ||
link: 'http://www.facebook.com/' | ||
}, { | ||
title: 'Tuesdays Tunes Season 3 - Episode 3', | ||
timestamp: SINGLE_EVENT[0].timestamp + (86400000 * 45), | ||
title: 'Tuesday\'s Tunes Season 3 - Episode 3', | ||
startTime: SINGLE_EVENT[0].startTime + (86400000 * 45), | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.', | ||
link: 'http://www.facebook.com/' | ||
}]; | ||
|
||
const NO_EVENTS = []; | ||
|
||
export { SINGLE_EVENT, MULTIPLE_EVENTS, NO_EVENTS }; | ||
export { SINGLE_EVENT, MULTIPLE_EVENTS, NO_EVENTS }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters