From a5100253717b9baf527e9ad0b2a427a68df1b28b Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:47:01 +0900 Subject: [PATCH] =?UTF-8?q?Unicode=E3=82=92=E5=90=AB=E3=82=81=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/test/e2e/endpoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/test/e2e/endpoints.ts b/packages/backend/test/e2e/endpoints.ts index d3861051b5..2e38800875 100644 --- a/packages/backend/test/e2e/endpoints.ts +++ b/packages/backend/test/e2e/endpoints.ts @@ -125,9 +125,9 @@ describe('Endpoints', () => { assert.strictEqual(res.body.name, null); }); - test('名前の前後に空白を入れてもトリムされる', async () => { + test('名前の前後に空白(Unicodeのホワイトスペース)を入れてもトリムされる', async () => { const res = await api('i/update', { - name: ' あ い う ', + name: ' あ い う \u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000', }, alice); assert.strictEqual(res.status, 200); assert.strictEqual(res.body.name, 'あ い う');