Commit 060516a
test(sdk-core): fix collection weight tests to actually verify weight changes
The tests "should update collection adding weights to existing items" and
"should update collection removing weights from items" were only checking that
the update payload was correct, but weren't actually verifying that the weight
properties were added or removed from the items.
This patch fixes both tests to explicitly verify:
- Adding weights: checks that itemWeight properties are present with correct values
- Removing weights: checks that itemWeight properties are absent
Without this fix, the tests could pass even if the implementation didn't
actually modify the weight properties, providing false confidence in the
functionality.
Co-authored-by: Claude Code <noreply@anthropic.com>1 parent 67a085e commit 060516a
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1385 | 1391 | | |
1386 | 1392 | | |
1387 | 1393 | | |
| |||
0 commit comments