public/js/tests/nested-objects.json

10 lines
426 B
JSON
Raw Permalink Normal View History

[
{
"description": "address and it's street property are objects",
"code": "equal(typeof address, 'object')\nequal(typeof address.street, 'object')"
},
{
"description": "all address properties have the correct types",
"code": "equal(typeof address.city, 'string')\nequal(typeof address.postcode, 'number')\nequal(typeof address.street.name, 'string')\nequal(typeof address.street.number, 'number')"
}
]