Skip to content

Commit

Permalink
테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c committed Mar 22, 2024
1 parent e33901e commit 5df2f1e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/api/groups.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ test('member listing', async t => {
t.deepEqual(response.body[0].studentNumbers, []);

const studentNumber = uuid();
await model.pgDo(tr => model.users.addStudentNumber(tr, memberUserIdx, studentNumber), ['users']);
await model.pgDo(tr => model.users.addStudentNumber(tr, memberUserIdx, studentNumber));

response = await agent.get(`/api/group/${groupIdx}/members`);
t.is(response.status, 200);
Expand Down Expand Up @@ -176,9 +176,7 @@ test('pending listing', async t => {
t.deepEqual(response.body[0].studentNumbers, []);

const studentNumber = uuid();
await model.pgDo(tr => model.users.addStudentNumber(tr, pendingUserIdx, studentNumber), [
'users',
]);
await model.pgDo(tr => model.users.addStudentNumber(tr, pendingUserIdx, studentNumber));

response = await agent.get(`/api/group/${groupIdx}/pending`);
t.is(response.status, 200);
Expand Down

0 comments on commit 5df2f1e

Please sign in to comment.