Updating shouldRegisterClaim tests
This commit is contained in:
parent
e3cb1ef37a
commit
e3852f2b7b
2 changed files with 5 additions and 2 deletions
|
|
@ -773,7 +773,10 @@ describe('coverageStatement.vue-working', () => {
|
||||||
shouldRegisterClaimStoreStateItac = {
|
shouldRegisterClaimStoreStateItac = {
|
||||||
order: {
|
order: {
|
||||||
payment: {
|
payment: {
|
||||||
insuranceCoverage: { claimNumber: null }
|
insuranceCoverage: {
|
||||||
|
claimNumber: null,
|
||||||
|
isVerified: true // Added
|
||||||
|
}
|
||||||
},
|
},
|
||||||
policy: {
|
policy: {
|
||||||
policyLookupSuccessful: true,
|
policyLookupSuccessful: true,
|
||||||
|
|
@ -862,6 +865,7 @@ describe('coverageStatement.vue-working', () => {
|
||||||
// Assert
|
// Assert
|
||||||
expect(result).toBeFalsy();
|
expect(result).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
test('returns false when insuranceCoverage not verified', () => {});
|
||||||
describe('returns true when policy lookup success, vehicleId set to %p, claim reg req, claim not yet reg', () => {
|
describe('returns true when policy lookup success, vehicleId set to %p, claim reg req, claim not yet reg', () => {
|
||||||
test('and itac', () => {
|
test('and itac', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -362,7 +362,6 @@ export default {
|
||||||
isQuoteDisplayed() {
|
isQuoteDisplayed() {
|
||||||
return this.isITACQuoteVisible || this.isNoCompQuoteVisible;
|
return this.isITACQuoteVisible || this.isNoCompQuoteVisible;
|
||||||
},
|
},
|
||||||
// TODO can we simplify this
|
|
||||||
shouldRegisterClaim() {
|
shouldRegisterClaim() {
|
||||||
const {
|
const {
|
||||||
policy,
|
policy,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue