Skip to content

Commit

Permalink
blog: NestJS 단위 테스트에서 getConnection().close() 대체하기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JHyeok committed Nov 2, 2024
1 parent 9a508f7 commit 1f9749f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/blog/typeorm-0.3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe('UserService', () => {
providers: [UserService, UserRepository],
}).compile();
sut = module.get<UserService>(UserService);
userRepository = module.get<UserRepository>(UserRepository);
sut = module.get(UserService);
userRepository = module.get(UserRepository);
});
// ... 생략
Expand Down Expand Up @@ -84,9 +84,9 @@ describe('UserService', () => {
providers: [UserService, UserRepository],
}).compile();
sut = module.get<UserService>(UserService);
dataSource = module.get<DataSource>(DataSource); /* 추가된 코드 */
userRepository = module.get<UserRepository>(UserRepository);
sut = module.get(UserService);
dataSource = module.get(DataSource); /* 추가된 코드 */
userRepository = module.get(UserRepository);
});
// ... 생략
Expand Down

0 comments on commit 1f9749f

Please sign in to comment.