Skip to content

Commit

Permalink
유저 생성 테스트 시 요청에 토큰 전달
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c committed Aug 10, 2023
1 parent 224c23b commit 71ffee8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/api/users.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 71ffee8

Please sign in to comment.