Updated unit tests
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4878c0dc46
commit
2af39d4b67
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue