Check HTTP status and payload shape separately
Use synthetic Response objects to test HTTP failure, invalid JSON and an unexpected payload without calling a service.
Short technical notes, each with a runnable example.
Use synthetic Response objects to test HTTP failure, invalid JSON and an unexpected payload without calling a service.
Exercise getItem and setItem, validate restored data and distinguish quota failure from successful persistence.