Skip to content

Commit

Permalink
refactor test mocks to only have future events (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 authored Dec 3, 2022
1 parent f021878 commit 034f027
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/upcoming-events/mock-events.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const SINGLE_EVENT = [{
title: 'Tuesday\'s Tunes Season 3 - Premier!',
title: 'Tuesday\'s Tunes Season 3 - Teaser Trailer!',
startTime: Date.now() + 300000,
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.'
}];
Expand All @@ -19,8 +19,8 @@ const MULTIPLE_EVENTS = [{
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.',
link: 'http://www.facebook.com/'
}, {
title: 'Tuesday\'s Tunes Season 3 - Teaser Trailer',
startTime: SINGLE_EVENT[0].startTime - (86400000 * 5),
title: 'Tuesday\'s Tunes Season 3 - Premier',
startTime: SINGLE_EVENT[0].startTime + (86400000 * 5),
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elite.',
link: 'http://www.facebook.com/'
}, {
Expand Down
6 changes: 3 additions & 3 deletions src/components/upcoming-events/upcoming-events.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ describe('Components/Upcoming Events', () => {

await events.updateComplete;

// 3, 1, 0, 2, 4
// 1, 3, 0, 2, 4
ORDERED_EVENTS = [{
...MULTIPLE_EVENTS[3]
}, {
...MULTIPLE_EVENTS[1]
}, {
...MULTIPLE_EVENTS[3]
}, {
...MULTIPLE_EVENTS[0]
}, {
Expand Down

0 comments on commit 034f027

Please sign in to comment.