HOTFIX SaySimple redirect #1005

Merged
jsegarra merged 4 commits from hotfix_saySimple into master 2024-11-27 06:56:29 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 72a481ae5b - Show all commits

View File

@ -1,7 +1,7 @@
import { describe, it, expect } from 'vitest'; import { describe, it, expect } from 'vitest';
import parsePhone from 'src/filters/parsePhone'; import parsePhone from 'src/filters/parsePhone';
describe.only('parsePhone filter', () => { describe('parsePhone filter', () => {
it("adds prefix +34 if it doesn't have one", () => { it("adds prefix +34 if it doesn't have one", () => {
const resultado = parsePhone('123456789', '34'); const resultado = parsePhone('123456789', '34');
expect(resultado).toBe('34123456789'); expect(resultado).toBe('34123456789');
@ -22,7 +22,7 @@ describe.only('parsePhone filter', () => {
expect(resultado).toBe('34123456789'); expect(resultado).toBe('34123456789');
}); });
it.only('replaces incorrect prefix with the correct one', () => { it('replaces incorrect prefix with the correct one', () => {
const resultado = parsePhone('+44123456789', '34'); const resultado = parsePhone('+44123456789', '34');
expect(resultado).toBe('44123456789'); expect(resultado).toBe('44123456789');
}); });