Skip to content

Commit

Permalink
Fix(Workflow tests failing): Change test dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur-Poffo committed Feb 12, 2024
1 parent b244d29 commit f8d73b9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,11 @@ describe('Get course metrics use case', () => {
})

it('should calculate course growth percentage correctly', async ({ expect }) => {
const instructor = makeInstructor({ registeredAt: new Date('2020-01-01') })
const createdAt = new Date('2007-03-27')

const instructor = makeInstructor({ registeredAt: createdAt })
await inMemoryInstructorsRepository.create(instructor)

const createdAt = new Date('2023-01-01')
const course = makeCourse({ createdAt, instructorId: instructor.id })
await inMemoryCoursesRepository.create(course)

Expand Down

0 comments on commit f8d73b9

Please sign in to comment.