diff --git a/test/backend_test.dart b/test/backend_test.dart index 4a443db..e64aac6 100644 --- a/test/backend_test.dart +++ b/test/backend_test.dart @@ -390,10 +390,12 @@ void main() { final article = await ServerArticleQuery.findByOwnerId(currentUser!.id); expect(article, isA
()); - await testAgent - .get('$articleApiPath/${article!.id}') - .expectStatus(HttpStatus.ok) - .expectJsonBody({'article': article.toJson()}).test(); + await testAgent.get('$articleApiPath/${article!.id}').expectStatus(HttpStatus.ok).expectJsonBody({ + 'article': { + ...article.toJson(), + 'author': currentUser!.toJson(), + } + }).test(); }); });