fix: refs #6818 get default prefix on err #1034
|
@ -37,7 +37,7 @@ describe('parsePhone filter', () => {
|
||||||
expect(phone).toBe('44123456789');
|
expect(phone).toBe('44123456789');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('adds default prefix when entering the catch block', async () => {
|
it('adds default prefix on error', async () => {
|
||||||
vi.spyOn(axios, 'get').mockImplementation((url) => {
|
vi.spyOn(axios, 'get').mockImplementation((url) => {
|
||||||
if (url.includes('Prefixes'))
|
if (url.includes('Prefixes'))
|
||||||
return Promise.reject(new Error('Network error'));
|
return Promise.reject(new Error('Network error'));
|
||||||
|
|
Loading…
Reference in New Issue