Updated unit tests
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-05-25 07:43:24 +02:00
parent 4878c0dc46
commit 2af39d4b67
2 changed files with 9 additions and 9 deletions

View File

@ -23,7 +23,7 @@ describe('Item Component vnClaimDescriptor', () => {
controller.showReport = jest.fn();
const params = {
clientId: claim.clientFk,
recipientId: claim.clientFk,
claimId: claim.id
};
controller.showPickupOrder();
@ -38,7 +38,7 @@ describe('Item Component vnClaimDescriptor', () => {
const params = {
recipient: claim.client.email,
clientId: claim.clientFk,
recipientId: claim.clientFk,
claimId: claim.id
};
controller.sendPickupOrder();

View File

@ -68,7 +68,7 @@ describe('Client', () => {
code: 'MyReport'
};
controller.clientSample = {
clientId: 101
recipientId: 101
};
controller.send(false, () => {});
@ -81,7 +81,7 @@ describe('Client', () => {
controller.$.sampleType.selection = null;
controller.clientSample = {
clientId: 101,
recipientId: 101,
recipient: 'client@email.com'
};
@ -98,7 +98,7 @@ describe('Client', () => {
code: 'MyReport'
};
controller.clientSample = {
clientId: 101,
recipientId: 101,
recipient: 'client@email.com'
};
@ -113,11 +113,11 @@ describe('Client', () => {
code: 'MyReport'
};
controller.clientSample = {
clientId: 101,
recipientId: 101,
recipient: 'client@email.com'
};
const expectedParams = {
clientId: 101,
recipientId: 101,
recipient: 'client@email.com'
};
const serializedParams = $httpParamSerializer(expectedParams);
@ -133,12 +133,12 @@ describe('Client', () => {
code: 'MyReport'
};
controller.clientSample = {
clientId: 101,
recipientId: 101,
recipient: 'client@email.com',
companyFk: 442
};
const expectedParams = {
clientId: 101,
recipientId: 101,
recipient: 'client@email.com',
companyId: 442
};