Skip to content

Commit b0a47c1

Browse files
fix
1 parent a510025 commit b0a47c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/backend/test/e2e/endpoints.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@ describe('Endpoints', () => {
125125
assert.strictEqual(res.body.name, null);
126126
});
127127

128-
test('名前の前後に空白(Unicodeのホワイトスペース)を入れてもトリムされる', async () => {
128+
test('名前の前後に空白(ホワイトスペース)を入れてもトリムされる', async () => {
129129
const res = await api('i/update', {
130-
name: ' あ い う \u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000',
130+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#white_space
131+
name: ' あ い う \u0009\u000b\u000c\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\ufeff',
131132
}, alice);
132133
assert.strictEqual(res.status, 200);
133134
assert.strictEqual(res.body.name, 'あ い う');

0 commit comments

Comments
 (0)