From c1b1c5a06e8a165741a3e2f75403792b07a32d4b Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sun, 30 Jun 2019 09:30:12 -0400 Subject: [PATCH] hooks test --- test/{current_user_test.dart => hooks_test.dart} | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) rename test/{current_user_test.dart => hooks_test.dart} (94%) diff --git a/test/current_user_test.dart b/test/hooks_test.dart similarity index 94% rename from test/current_user_test.dart rename to test/hooks_test.dart index c104d5d5..22f1a8b8 100644 --- a/test/current_user_test.dart +++ b/test/hooks_test.dart @@ -117,14 +117,18 @@ class House { House(this.id, this.ownerId, this.address); - static House fromMap(Map map) => House( - map['id'] as String, map['owner_id'] as String, map['address'] as String); + static House fromMap(Map map) { + print('In $map'); + return House(map['id'] as String, map['owner_id'] as String, + map['address'] as String); + } House withOwner(String newOwnerId) { return House(id, newOwnerId, address); } Map toJson() { + print('Out ${{'id': id, 'owner_id': ownerId, 'address': address}}'); return {'id': id, 'owner_id': ownerId, 'address': address}; } }