Forgot to save
This commit is contained in:
parent
51c1352a2c
commit
653cb5e9ca
1 changed files with 1 additions and 63 deletions
|
|
@ -330,69 +330,6 @@ describe('cart-dropdown component', () => {
|
|||
});
|
||||
});
|
||||
describe('computed', () => {
|
||||
// TODO remove
|
||||
describe('showDeductibleLineItem', () => {
|
||||
test.each([[true], [false]])('returns false when isNoComp true', (isItac) => {
|
||||
// Arrange
|
||||
const storeData = {
|
||||
order: {
|
||||
policy: {
|
||||
isITAC: isItac,
|
||||
noCoverage: true
|
||||
}
|
||||
}
|
||||
};
|
||||
const { wrapper } = getMountedComponent(storeData);
|
||||
|
||||
// Act
|
||||
const result = wrapper.vm.showDeductibleLineItem;
|
||||
|
||||
// Assert
|
||||
expect(result).toBeFalsy();
|
||||
});
|
||||
test.each([
|
||||
[coverageStatuses.NO_COMP],
|
||||
[coverageStatuses.PENDING]])('returns false when isITAC true', (coverageStatus) => {
|
||||
// Arrange
|
||||
const storeData = {
|
||||
order: {
|
||||
payment: {
|
||||
insuranceCoverage: {
|
||||
coverageStatus
|
||||
}
|
||||
},
|
||||
policy: {
|
||||
isITAC: true
|
||||
}
|
||||
}
|
||||
};
|
||||
const { wrapper } = getMountedComponent(storeData);
|
||||
|
||||
// Act
|
||||
const result = wrapper.vm.showDeductibleLineItem;
|
||||
|
||||
// Assert
|
||||
expect(result).toBeFalsy();
|
||||
});
|
||||
test('returns true when isNoComp false and isITAC false', () => {
|
||||
// Arrange
|
||||
const storeData = {
|
||||
order: {
|
||||
policy: {
|
||||
isITAC: false,
|
||||
noCoverage: false
|
||||
}
|
||||
}
|
||||
};
|
||||
const { wrapper } = getMountedComponent(storeData);
|
||||
|
||||
// Act
|
||||
const result = wrapper.vm.showDeductibleLineItem;
|
||||
|
||||
// Assert
|
||||
expect(result).toBeTruthy();
|
||||
});
|
||||
});
|
||||
describe('isUnverified', () => {
|
||||
test('returns false when no comp', () => {
|
||||
// Arrange
|
||||
|
|
@ -1059,6 +996,7 @@ describe('cart-dropdown component', () => {
|
|||
expect(result.name).toBe(expectedName);
|
||||
});
|
||||
});
|
||||
describe.todo('packagePrice', () => {});
|
||||
});
|
||||
describe('method', () => {
|
||||
describe('getDisplayed', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue