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}; } }