Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Aug 26, 2024
1 parent d1c4c75 commit 4ba7adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/auth.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as moment from 'moment'
import { JwtPayload } from './types/jwt-payload.type'
import * as jwt from 'jsonwebtoken'
import { PinoLogger, LoggerModule } from 'nestjs-pino'
import { BadRequestException } from '@nestjs/common'
import { UnauthorizedException } from '@nestjs/common'

const mockPublicKey =
'0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef'
Expand Down Expand Up @@ -82,7 +82,7 @@ describe('AuthService', () => {
it('should return null if token is invalid', async () => {
await expect(
service.validateToken('invalid.token.here')
).rejects.toThrow(BadRequestException)
).rejects.toThrow(UnauthorizedException)
})
})
})

0 comments on commit 4ba7adb

Please sign in to comment.