apiError.spec.ts 233 B

12345678
  1. import ApiError from "~/services/utils/apiError";
  2. describe('getStatus()', ()=>{
  3. it('should return the status code', () => {
  4. const apiError = new ApiError(404, 'not found')
  5. expect(apiError.getStatus()).toEqual(404)
  6. })
  7. })