Skip to content

test: cover admin pause toggle#44

Closed
gaoflow wants to merge 1 commit into
StableRoute-Org:mainfrom
gaoflow:test/admin-18-pause-toggle
Closed

test: cover admin pause toggle#44
gaoflow wants to merge 1 commit into
StableRoute-Org:mainfrom
gaoflow:test/admin-18-pause-toggle

Conversation

@gaoflow

@gaoflow gaoflow commented Jun 21, 2026

Copy link
Copy Markdown

Summary

  • add test coverage for the admin status load and pause/unpause flow
  • assert the correct /pause and /unpause endpoints are posted based on loaded state
  • cover status reload after successful toggles
  • cover initial loading, load errors, and toggle errors without reload

Closes #18

Tests

  • npm test -- src/app/admin/page.test.tsx --runInBand
  • npm run lint
  • npm test -- --runInBand
  • npm test -- --coverage --runInBand
  • npm run build

Coverage note: app/admin/page.tsx reports 100% statement, branch, function, and line coverage in the coverage run.

@mikewheeleer

Copy link
Copy Markdown
Contributor

hey @gaoflow, thanks for the effort here 🙏 issue #18 isn't assigned to you though — to keep the campaign fair and avoid duplicate work, please claim/get assigned to it first, then open your PR. closing for now; would love to see it back once it's assigned to you 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for the admin pause/unpause toggle flow

2 participants