update test
This commit is contained in:
parent
73681a7268
commit
acc05b9245
1 changed files with 13 additions and 4 deletions
|
|
@ -779,9 +779,18 @@ describe('Store', () => {
|
||||||
});
|
});
|
||||||
it('calls api with expected lineItems', async () => {
|
it('calls api with expected lineItems', async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const glassParts = getRandomString(6, 6);
|
const glassParts = [{
|
||||||
const supportingItems = getRandomString(6, 6);
|
partNumber: getRandomString(6, 6),
|
||||||
const vaps = getRandomString(6, 6);
|
clearOnSubmit: false
|
||||||
|
}];
|
||||||
|
const supportingItems = [{
|
||||||
|
partNumber: getRandomString(6, 6),
|
||||||
|
clearOnSubmit: false
|
||||||
|
}];
|
||||||
|
const vaps = [{
|
||||||
|
partNumber: getRandomString(6, 6),
|
||||||
|
clearOnSubmit: false
|
||||||
|
}];
|
||||||
store.order.lineItems.glassParts = glassParts;
|
store.order.lineItems.glassParts = glassParts;
|
||||||
store.order.lineItems.supportingItems = supportingItems;
|
store.order.lineItems.supportingItems = supportingItems;
|
||||||
store.order.lineItems.vaps = vaps;
|
store.order.lineItems.vaps = vaps;
|
||||||
|
|
@ -808,7 +817,7 @@ describe('Store', () => {
|
||||||
[coverageStatuses.PENDING, coverageType.Deductible, null],
|
[coverageStatuses.PENDING, coverageType.Deductible, null],
|
||||||
[coverageStatuses.VERIFIED, coverageType.ITAC, 'V_ITAC_123'],
|
[coverageStatuses.VERIFIED, coverageType.ITAC, 'V_ITAC_123'],
|
||||||
[coverageStatuses.VERIFIED, coverageType.Deductible, 'V_Deductible_123'],
|
[coverageStatuses.VERIFIED, coverageType.Deductible, 'V_Deductible_123'],
|
||||||
[coverageStatuses.NO_COVERAGE, coverageType.NONE, null],
|
[coverageStatuses.NO_COVERAGE, coverageType.NONE, null]
|
||||||
])('calls api with expected insuranceCoverage', (status, type, claimNumber) => {
|
])('calls api with expected insuranceCoverage', (status, type, claimNumber) => {
|
||||||
test(`calls api with coverageStatus is ${getEnumName(coverageStatuses, status)} and coverageType is ${getEnumName(coverageType, type)} and claimNumber is ${claimNumber}`, async () => {
|
test(`calls api with coverageStatus is ${getEnumName(coverageStatuses, status)} and coverageType is ${getEnumName(coverageType, type)} and claimNumber is ${claimNumber}`, async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue