unauthorizedError.test.ts 281 B

12345678910
  1. import { describe, test, it, expect } from 'vitest'
  2. import UnauthorizedError from '~/services/error/UnauthorizedError'
  3. describe('UnauthorizedError', () => {
  4. test('throw', () => {
  5. expect(() => {
  6. throw new UnauthorizedError()
  7. }).toThrowError('Unauthorized')
  8. })
  9. })