docs(readme): in sample code, extract local variable - 'expected'.