Merge branch 'dev' of https://git.verdnatura.es/salix into dev
This commit is contained in:
commit
0fcbb383ee
|
@ -39,26 +39,6 @@ describe('TIN validation', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
xdescribe('French', () => {
|
|
||||||
it('should return true for valid french TIN', () => {
|
|
||||||
let isValid = validateDni('012345678', 'fr');
|
|
||||||
|
|
||||||
expect(isValid).toBeTruthy();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should return false for french TIN with exceeded digits', () => {
|
|
||||||
let isValid = validateDni('1B123456789101234', 'fr');
|
|
||||||
|
|
||||||
expect(isValid).toBeFalsy();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should return false for french TIN with bad syntax', () => {
|
|
||||||
let isValid = validateDni('1B12345678A', 'fr');
|
|
||||||
|
|
||||||
expect(isValid).toBeFalsy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('Italian', () => {
|
describe('Italian', () => {
|
||||||
it('should return true for valid italian TIN', () => {
|
it('should return true for valid italian TIN', () => {
|
||||||
let isValid = validateDni('12345678911', 'it');
|
let isValid = validateDni('12345678911', 'it');
|
||||||
|
|
Loading…
Reference in New Issue