mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
426 B
10 lines
426 B
4 years ago
|
[
|
||
|
{
|
||
|
"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')"
|
||
|
}
|
||
|
]
|