You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: correct chai have.property assertions — drop second arg used as message
chai's have.property(name, val) treats val as expected value, not error message.
This caused test 11 (pagination) to fail because chai checked
_asset_scan_status === 'Page item blt... is missing...' instead of just
verifying the property exists.
All 7 affected assertions fixed:
- 5x .not.have.property(name, msg) → .not.have.property(name)
(false-pass bug: would pass even if property existed with any value)
- 1x .have.property(name, msg) → expect(obj, msg).to.have.property(name)
(was the direct failure in pagination test)
- 1x api_version header check in §4.2
Verified locally: 23 passing, 0 failing, 9 pending (publish/AM skips expected)
0 commit comments