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

View File

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