From de52490a98f9117e2712d36d0a3dedfc57d824a7 Mon Sep 17 00:00:00 2001 From: Dan Ribbens Date: Wed, 13 Nov 2024 15:37:44 -0500 Subject: [PATCH] chore: fix community test (#9186) --- test/_community/int.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/_community/int.spec.ts b/test/_community/int.spec.ts index ee66eb68d8..6cc524d87b 100644 --- a/test/_community/int.spec.ts +++ b/test/_community/int.spec.ts @@ -52,19 +52,19 @@ describe('_Community Tests', () => { const newPost = await payload.create({ collection: postsSlug, data: { - text: 'LOCAL API EXAMPLE', + title: 'LOCAL API EXAMPLE', }, context: {}, }) - expect(newPost.text).toEqual('LOCAL API EXAMPLE') + expect(newPost.title).toEqual('LOCAL API EXAMPLE') }) it('rest API example', async () => { const data = await restClient .POST(`/${postsSlug}`, { body: JSON.stringify({ - text: 'REST API EXAMPLE', + title: 'REST API EXAMPLE', }), headers: { Authorization: `JWT ${token}`, @@ -72,6 +72,6 @@ describe('_Community Tests', () => { }) .then((res) => res.json()) - expect(data.doc.text).toEqual('REST API EXAMPLE') + expect(data.doc.title).toEqual('REST API EXAMPLE') }) })