From 9d10a357006f3d2185959257d54cd24797d277ca Mon Sep 17 00:00:00 2001 From: Czysty Date: Mon, 26 Feb 2018 12:17:27 +0100 Subject: [PATCH] Update documentation about toHaveProperty --- docs/ExpectAPI.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ExpectAPI.md b/docs/ExpectAPI.md index f595c1d06aa6..2d9a3897e4f6 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -925,6 +925,7 @@ const houseForSale = { amenities: ['oven', 'stove', 'washer'], area: 20, wallColor: 'white', + 'nice.oven': true, }, }; @@ -952,7 +953,7 @@ test('this house has my desired features', () => { ['oven', 'stove', 'washer'], ); expect(houseForSale).toHaveProperty(['kitchen', 'amenities', 0], 'oven'); - + expect(houseForSale).toHaveProperty(['kitchen', 'nice.oven']); expect(houseForSale).not.toHaveProperty(['kitchen', 'open']); }); ```