INSR-10489: A bunch of formatting fixes
This commit is contained in:
parent
5686afa931
commit
413391893f
3 changed files with 12 additions and 12 deletions
|
|
@ -330,7 +330,7 @@ describe('payment-method.vue', () => {
|
|||
const wrapper = setupMocks({}, {}, null, mockCmsContent);
|
||||
|
||||
// Act
|
||||
const stateSpecificTextBlock = wrapper.find('[class="state-specific-text"]');
|
||||
const stateSpecificTextBlock = wrapper.find('.state-specific-text');
|
||||
|
||||
// Assert
|
||||
expect(stateSpecificTextBlock.exists()).toBe(true);
|
||||
|
|
@ -340,7 +340,7 @@ describe('payment-method.vue', () => {
|
|||
const wrapper = setupMocks({}, {}, null, '');
|
||||
|
||||
// Act
|
||||
const stateSpecificTextBlock = wrapper.find('[class="state-specific-text"]');
|
||||
const stateSpecificTextBlock = wrapper.find('.state-specific-text');
|
||||
|
||||
// Assert
|
||||
expect(stateSpecificTextBlock.exists()).toBe(false);
|
||||
|
|
|
|||
|
|
@ -582,8 +582,8 @@ export default {
|
|||
this.pushEventToGA('Submit Appointment', action, label, true, null, 1);
|
||||
},
|
||||
getStateSpecificText(value) {
|
||||
if(value.includes('not')) {
|
||||
return !value?.toLowerCase().includes(this.mainStore.order.customer.address.state?.toLowerCase())
|
||||
if (value.includes('not')) {
|
||||
return !value?.toLowerCase().includes(this.mainStore.order.customer.address.state?.toLowerCase());
|
||||
}
|
||||
return this.mainStore.order.customer.address.state?.toLowerCase() === value?.toLowerCase();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
modalBodyText() {
|
||||
return this.getCmsContent(this.cmsWidgetName, widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT)
|
||||
return this.getCmsContent(this.cmsWidgetName, widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT);
|
||||
},
|
||||
modalCloseLinkText() {
|
||||
return this.getCmsContent(this.cmsWidgetName, widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT_2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue