Skip to content

test: cover feature flags controller#1345

Open
brentthomas248 wants to merge 1 commit into
MyFanss:mainfrom
brentthomas248:codex/grantfox-1078
Open

test: cover feature flags controller#1345
brentthomas248 wants to merge 1 commit into
MyFanss:mainfrom
brentthomas248:codex/grantfox-1078

Conversation

@brentthomas248

Copy link
Copy Markdown

Summary

  • adds controller unit coverage for the feature flags endpoint
  • verifies FeatureFlagsController delegates to the mocked FeatureFlagsService
  • verifies the returned snapshot is passed through unchanged

Closes #1078

Verification

  • npm test --prefix backend -- feature-flags.controller.spec.ts
  • npm test --prefix backend -- feature-flags.service.spec.ts feature-flags.controller.spec.ts
  • git diff --check HEAD~1..HEAD -- backend/src/feature-flags/feature-flags.controller.spec.ts
  • cd backend && npx --no-install eslint src/feature-flags/feature-flags.controller.spec.ts

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.

Backend Feature flags: Add controller unit tests with mocked service

1 participant