Skip to content

Commit

Permalink
✅ test: supertest -\> request
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo-Minseok committed Dec 2, 2024
1 parent cb4d414 commit 17cb3b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/test/admin/logout.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { INestApplication } from '@nestjs/common';
import * as supertest from 'supertest';
import * as request from 'supertest';
import { RedisService } from '../../src/common/redis/redis.service';

describe('POST /api/admin/logout E2E Test', () => {
Expand All @@ -13,7 +13,7 @@ describe('POST /api/admin/logout E2E Test', () => {

it('관리자 로그인이 되어 있으면 로그아웃을 정상적으로 할 수 있다.', async () => {
// when
const response = await supertest(app.getHttpServer())
const response = await request(app.getHttpServer())
.post('/api/admin/logout')
.set('Cookie', 'sessionId=sid');

Expand All @@ -26,7 +26,7 @@ describe('POST /api/admin/logout E2E Test', () => {

it('관리자 로그인이 되어 있지 않으면 로그아웃을 정상적으로 할 수 없다.', async () => {
// when
const response = await supertest(app.getHttpServer()).post(
const response = await request(app.getHttpServer()).post(
'/api/admin/logout',
);

Expand Down

0 comments on commit 17cb3b6

Please sign in to comment.