Skip to content
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

test: test the dashboard admins property #8303

Merged
merged 7 commits into from
Sep 30, 2024

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Sep 30, 2024

This PR adds tests for the new admins property of the personal dashboard API payload.

It checks that only user admins are added and that their image URL is not an empty string. In doing this, also fixes an issue where the image URL wouldn't be generated correctly.

Discussion points

Some of the test feels like it might be better testing on a deeper level (i.e. the account store). However, from an initial glance, I think that would require more setup and work, so I'm leaving it in the dashboard test for now as that's where it's ultimately useful. But we can discuss if we should move it.

Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 1:34pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 1:34pm

Copy link
Contributor

github-actions bot commented Sep 30, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

src/lib/types/user.ts Outdated Show resolved Hide resolved
@thomasheartman thomasheartman enabled auto-merge (squash) September 30, 2024 13:34
@thomasheartman thomasheartman merged commit e4cec66 into main Sep 30, 2024
11 checks passed
@thomasheartman thomasheartman deleted the chore/test-dashboard-payload-admins branch September 30, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants