Removing unnecessary method
This commit is contained in:
parent
db86be9bf9
commit
43f48c5571
1 changed files with 0 additions and 62 deletions
|
|
@ -323,68 +323,6 @@ describe('cart-dropdown component', () => {
|
|||
});
|
||||
});
|
||||
describe('computed', () => {
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue