test: refs #6818 update description
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-12-02 14:43:58 +01:00
parent 07b2be14ae
commit baf76cf633
1 changed files with 1 additions and 1 deletions

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'));