import ApiError from '~/services/exception/apiError' describe('getStatus()', () => { it('should return the status code', () => { const apiError = new ApiError(404, 'not found') expect(apiError.getStatus()).toEqual(404) }) })