fix: refs #6818 get default prefix on err #1034

Merged
jorgep merged 2 commits from 6818-hotfix-getDefaultPrefix into master 2024-12-02 15:08:05 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit baf76cf633 - Show all commits

View File

@ -37,7 +37,7 @@ describe('parsePhone filter', () => {
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) => {
if (url.includes('Prefixes'))
return Promise.reject(new Error('Network error'));