Unicodeを含める

This commit is contained in:
kakkokari-gtyih 2024-07-02 18:47:01 +09:00
parent 70fe3574a8
commit a510025371
1 changed files with 2 additions and 2 deletions

View File

@ -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, 'あ い う');