Repository navigation
Commit 6796584
test: lock that the deck list omits cards
PR #30 split the Deck response contract (light Deck for lists,
DeckWithCards for detail) but no test asserted that cards is absent
from list responses — the existing tests passed either way.
Add a test that creates a deck WITH a card and asserts the list item
has no cards key. Under the old single-schema design this would have
failed (it returned the misleading cards: []), so it pins the fix.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 52f0256 commit 6796584
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
0 commit comments