-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated unit tests from #477 PR #538
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Gridiron Survivor Application
Project name: Gridiron Survivor Application
Only deployments on the production branch are activated automatically. If you'd like to activate this deployment, navigate to your deployments. Learn more about Appwrite Function deployments.
|
utils/utils.ts
Outdated
return ''; | ||
} | ||
|
||
const userSelectedTeam = NFLTeams.find((team) => team.teamName === userPick.teamName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vmaineng I still don't see this as resolved yet?
app/(main)/league/all/page.test.tsx
Outdated
mockGetUserLeagues.mockResolvedValueOnce([]); | ||
mockGetGameWeek.mockResolvedValueOnce({ week: 1 }); | ||
render(<Leagues />); | ||
test('should display GlobalSpinner while loading data', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chang all test
to it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to it
utils/utils.ts
Outdated
return ''; | ||
} | ||
|
||
const userSelectedTeam = NFLTeams.find((team) => team.teamName === userPick.teamName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't update the core functionality to get test to work. The test should be updated to match the core functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with the changes! :)
What does this PR do?
Related Issues/PRs
This is the PR that was submitted where tests were omitted to meet Alpha deadline.
- https://github.com/LetsGetTechnical/gridiron-survivor/issues/513