CASH-399 - format code
This commit is contained in:
parent
fbbadd721f
commit
7014e97c76
4 changed files with 9 additions and 11 deletions
|
|
@ -39,8 +39,8 @@ export default {
|
||||||
default: "text area",
|
default: "text area",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// TODO: At some point in the future we should probably add the tie in to validation here in case the field must be populated for some other use cases
|
// TODO: At some point in the future we should probably add the tie in to validation here in case the field must be populated for some other use cases
|
||||||
setup() {},
|
setup() {},
|
||||||
computed: {
|
computed: {
|
||||||
questionText() {
|
questionText() {
|
||||||
return this.getCmsContent(this.cmsWidgetName, "QuestionText");
|
return this.getCmsContent(this.cmsWidgetName, "QuestionText");
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ const mockStoreActions = {
|
||||||
SAVE_CUSTOMER_DETAILS: "SAVE_CUSTOMER_DETAILS",
|
SAVE_CUSTOMER_DETAILS: "SAVE_CUSTOMER_DETAILS",
|
||||||
SAVE_SERVICE_LOCATION_TECH_NOTES: "SAVE_SERVICE_LOCATION_TECH_NOTES",
|
SAVE_SERVICE_LOCATION_TECH_NOTES: "SAVE_SERVICE_LOCATION_TECH_NOTES",
|
||||||
SAVE_PAYMENT_METHOD_CHOICE: "SAVE_PAYMENT_METHOD_CHOICE",
|
SAVE_PAYMENT_METHOD_CHOICE: "SAVE_PAYMENT_METHOD_CHOICE",
|
||||||
}
|
};
|
||||||
|
|
||||||
describe("CustomerDetails.vue", () => {
|
describe("CustomerDetails.vue", () => {
|
||||||
let wrapper;
|
let wrapper;
|
||||||
|
|
@ -41,7 +41,7 @@ describe("CustomerDetails.vue", () => {
|
||||||
},
|
},
|
||||||
mixins: [mockMixin],
|
mixins: [mockMixin],
|
||||||
mocks: {
|
mocks: {
|
||||||
storeActions: mockStoreActions,
|
storeActions: mockStoreActions,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -77,6 +77,4 @@ describe("CustomerDetails.vue", () => {
|
||||||
expect(techNotes.props("modelValue")).toBe("Initial Tech Notes");
|
expect(techNotes.props("modelValue")).toBe("Initial Tech Notes");
|
||||||
expect(techNotes.props("textAreaLabelCopy")).toBe("Mocked CMS Content");
|
expect(techNotes.props("textAreaLabelCopy")).toBe("Mocked CMS Content");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
v-model="isSmsOptIn" />
|
v-model="isSmsOptIn" />
|
||||||
|
|
||||||
<techNotes v-model="techNotes" :textAreaLabelCopy="textAreaLabelCopy" />
|
<techNotes v-model="techNotes" :textAreaLabelCopy="textAreaLabelCopy" />
|
||||||
|
|
||||||
<navbar
|
<navbar
|
||||||
cmsWidgetName="FunnelFooterWidget"
|
cmsWidgetName="FunnelFooterWidget"
|
||||||
ref="navbar"
|
ref="navbar"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import TextareaQuestion from "@/digital-components/textarea-question/textarea-qu
|
||||||
const mockMixin = {
|
const mockMixin = {
|
||||||
methods: {
|
methods: {
|
||||||
getCmsContent() {
|
getCmsContent() {
|
||||||
return "Mocked CMS Content";
|
return "Mocked CMS Content";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
@ -19,7 +19,7 @@ describe("TechNotes.vue", () => {
|
||||||
textAreaLabelCopy: "Notes for your technician",
|
textAreaLabelCopy: "Notes for your technician",
|
||||||
},
|
},
|
||||||
global: {
|
global: {
|
||||||
mixins: [mockMixin],
|
mixins: [mockMixin],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -39,7 +39,7 @@ describe("TechNotes.vue", () => {
|
||||||
},
|
},
|
||||||
global: {
|
global: {
|
||||||
components: {
|
components: {
|
||||||
TextareaQuestion,
|
TextareaQuestion,
|
||||||
},
|
},
|
||||||
mixins: [mockMixin],
|
mixins: [mockMixin],
|
||||||
},
|
},
|
||||||
|
|
@ -60,7 +60,7 @@ describe("TechNotes.vue", () => {
|
||||||
textAreaLabelCopy: "Notes for your technician",
|
textAreaLabelCopy: "Notes for your technician",
|
||||||
},
|
},
|
||||||
global: {
|
global: {
|
||||||
mixins: [mockMixin],
|
mixins: [mockMixin],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue