Skip to content

Commit

Permalink
refactor: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
a20688392 committed Aug 31, 2023
1 parent f30d2b9 commit 89270a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth/local/local-auth.guard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ describe("LocalAuthGuard", () => {
{
provide: AuthService,
useValue: {
// 模擬AuthService中的方法
validateUser: jest.fn(),
},
},
Expand Down Expand Up @@ -117,6 +116,7 @@ describe("LocalAuthGuard", () => {
try {
await localAuthGuard.canActivate(mockExecutionContext);
} catch (error) {
expect(error).toBeInstanceOf(BadRequestException);
if (error instanceof HttpException) {
expect(error).toBeInstanceOf(BadRequestException);
expect(error.getResponse()).toEqual({
Expand Down
1 change: 0 additions & 1 deletion src/auth/local/local.strategy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ describe("LocalStrategy", () => {
{
provide: AuthService,
useValue: {
// 模擬AuthService中的方法
validateUser: jest.fn(),
},
},
Expand Down

0 comments on commit 89270a0

Please sign in to comment.