CASH-3034 - prettier check

This commit is contained in:
Minojhini Valaiyapathi 2026-07-16 11:00:41 -04:00
parent e37a3178a3
commit bb02e45d66
2 changed files with 26 additions and 6 deletions

View file

@ -266,8 +266,16 @@ describe("Question Chain component", () => {
questionSequence: 3, questionSequence: 3,
questionText: "Laminated door glass?", questionText: "Laminated door glass?",
answers: [ answers: [
{ answerResult: "PART-C", answerText: "Yes", nextQuestionSequence: null }, {
{ answerResult: "PART-D", answerText: "No", nextQuestionSequence: null }, answerResult: "PART-C",
answerText: "Yes",
nextQuestionSequence: null,
},
{
answerResult: "PART-D",
answerText: "No",
nextQuestionSequence: null,
},
], ],
answerSelected: "3|answer|PART-C|Yes", answerSelected: "3|answer|PART-C|Yes",
}, },
@ -275,8 +283,16 @@ describe("Question Chain component", () => {
questionSequence: 5, questionSequence: 5,
questionText: "Factory installed antenna?", questionText: "Factory installed antenna?",
answers: [ answers: [
{ answerResult: "PART-E", answerText: "Yes", nextQuestionSequence: null }, {
{ answerResult: "PART-F", answerText: "No", nextQuestionSequence: null }, answerResult: "PART-E",
answerText: "Yes",
nextQuestionSequence: null,
},
{
answerResult: "PART-F",
answerText: "No",
nextQuestionSequence: null,
},
], ],
}, },
], ],
@ -451,7 +467,9 @@ describe("Question Chain component", () => {
); );
expect( expect(
wrapper.vm.questions.filter((question) => wrapper.vm.isQuestionVisible(question)) wrapper.vm.questions.filter((question) => wrapper.vm.isQuestionVisible(question))
).not.toEqual(expect.arrayContaining([expect.objectContaining({ questionSequence: 2 })])); ).not.toEqual(
expect.arrayContaining([expect.objectContaining({ questionSequence: 2 })])
);
}); });
test("should resume at question 3 after remount when Q1 No was already saved", async () => { test("should resume at question 3 after remount when Q1 No was already saved", async () => {

View file

@ -177,7 +177,9 @@ describe("questionsPageLayout.vue", () => {
await wrapper.setProps({ index: 1 }); await wrapper.setProps({ index: 1 });
const testGlassPiece = { const testGlassPiece = {
questions: [{ questionSequence: 1, questionText: "Rain sensing wipers?", answers: [] }], questions: [
{ questionSequence: 1, questionText: "Rain sensing wipers?", answers: [] },
],
answerData: null, answerData: null,
}; };