CASH-3034 - prettier check
This commit is contained in:
parent
e37a3178a3
commit
bb02e45d66
2 changed files with 26 additions and 6 deletions
|
|
@ -266,8 +266,16 @@ describe("Question Chain component", () => {
|
|||
questionSequence: 3,
|
||||
questionText: "Laminated door glass?",
|
||||
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",
|
||||
},
|
||||
|
|
@ -275,8 +283,16 @@ describe("Question Chain component", () => {
|
|||
questionSequence: 5,
|
||||
questionText: "Factory installed antenna?",
|
||||
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(
|
||||
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 () => {
|
||||
|
|
|
|||
|
|
@ -177,7 +177,9 @@ describe("questionsPageLayout.vue", () => {
|
|||
await wrapper.setProps({ index: 1 });
|
||||
|
||||
const testGlassPiece = {
|
||||
questions: [{ questionSequence: 1, questionText: "Rain sensing wipers?", answers: [] }],
|
||||
questions: [
|
||||
{ questionSequence: 1, questionText: "Rain sensing wipers?", answers: [] },
|
||||
],
|
||||
answerData: null,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue