Skip to content

test: update card member mock for description normalization - #585

Merged
hjball merged 1 commit into
kanbn:mainfrom
habralab:fix/card-members-normalize-description-test
Sep 4, 2026
Merged

test: update card member mock for description normalization#585
hjball merged 1 commit into
kanbn:mainfrom
habralab:fix/card-members-normalize-description-test

Conversation

@bionicman

@bionicman bionicman commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What changed

Adds normalizeDescription to the shared-utils mock used by the card-member router tests.

Why

The card-member tests introduced in #576 fully mock @kan/shared/utils. After #582 began normalising descriptions in card create and duplicate, those tests fail before reaching their workspace-scoping assertions because the mock does not expose the new helper.

This is test-only and does not change runtime behaviour.

It also restores the unit-test baseline currently blocking otherwise passing
#572, #579, #581, and #586.

Verification

pnpm --filter @kan/api exec vitest run src/routers/card-members.test.ts — 5 tests passed.

@hjball hjball left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice one, I'll close mine

@hjball
hjball merged commit 2191565 into kanbn:main Sep 4, 2026
3 checks passed
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.

2 participants