fixes #5633 Reutilizar accountShortToStandard en un nuevo componente #1541

Closed
alexandre wants to merge 20 commits from 5633-accountShortToStandard into dev
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 27f806e607 - Show all commits

View File

@ -16,12 +16,11 @@ describe('Component vnAccountNumber', () => {
describe('accountShortToStandard', () => {
it('should replace dots and emit event with account number', () => {
const mockValue = '41.1';
controller.field = '41.1';
const expectedAccountNumber = '4100000001';
controller.accountShortToStandard(mockValue);
controller.accountShortToStandard();
expect(controller.accountNumber).toBe(expectedAccountNumber);
expect(controller.$.$emit).toHaveBeenCalledWith('accountShortToStandard', expectedAccountNumber);
});
});

View File

@ -61,7 +61,7 @@
<vn-account-number
vn-one
label="Account"
vn-name="account"
name="account"
ng-model="$ctrl.supplier.account">
</vn-account-number>
<vn-autocomplete