updated back unit tests

This commit is contained in:
Joan Sanchez 2019-09-19 09:17:21 +02:00
parent 73b1f18759
commit 5a4c6bf66f
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ describe('Client updateFiscalData', () => {
it('should update the client fiscal data and return the count if changes made', async() => {
let ctxOfAdmin = {req: {accessToken: {userId: 5}}};
let validparams = {postcode: 12345};
let validparams = {postcode: 46680};
let idWithDataChecked = 101;
let client = await app.models.Client.findById(idWithDataChecked);
@ -52,6 +52,6 @@ describe('Client updateFiscalData', () => {
let result = await app.models.Client.updateFiscalData(ctxOfAdmin, validparams, idWithDataChecked);
expect(result.postcode).toEqual('12345');
expect(result.postcode).toEqual('46680');
});
});

View File

@ -42,7 +42,7 @@ describe('loopback model address', () => {
mobile: '555555555',
nickname: 'Test address',
phone: '555555555',
postalCode: '00000',
postalCode: '46000',
provinceFk: 1,
street: 'Test address'
});