From 71ffee8ae025234ddf877f82d5e08224f9302a73 Mon Sep 17 00:00:00 2001 From: Wonwoo Choi Date: Thu, 10 Aug 2023 23:06:25 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EC=A0=80=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=8B=9C=20=EC=9A=94=EC=B2=AD?= =?UTF-8?q?=EC=97=90=20=ED=86=A0=ED=81=B0=20=EC=A0=84=EB=8B=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/api/users.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/api/users.test.ts b/test/api/users.test.ts index 1afc190..b17b76f 100644 --- a/test/api/users.test.ts +++ b/test/api/users.test.ts @@ -50,6 +50,7 @@ test('create user step by step', async t => { // test validation check response = await agent.post('/api/user').send({ + token, username: '0abcdefghijk', password, name, @@ -60,6 +61,7 @@ test('create user step by step', async t => { // test validation check response = await agent.post('/api/user').send({ + token, username: 'a' + crypto.randomBytes(32).toString('hex'), password, name, @@ -69,6 +71,7 @@ test('create user step by step', async t => { t.is(response.status, 400) response = await agent.post('/api/user').send({ + token, username, password: 'asdf', name, @@ -78,6 +81,7 @@ test('create user step by step', async t => { t.is(response.status, 400) response = await agent.post('/api/user').send({ + token, username, password, name, @@ -86,6 +90,7 @@ test('create user step by step', async t => { t.is(response.status, 400) response = await agent.post('/api/user').send({ + token, username, password, name,