From 2c82599cae2b9b40f5365d007c13bfe31340984b Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Tue, 6 Oct 2020 12:39:52 +0100 Subject: [PATCH] test suite created for qt/review --- .../QualifyingTests/QualifyingTest/Review.vue | 2 +- tests/unit/helpers.js | 6 +- .../QualifyingTest/Review.spec.js | 95 ++++++++++++++++--- 3 files changed, 86 insertions(+), 17 deletions(-) diff --git a/src/views/Exercises/Tasks/QualifyingTests/QualifyingTest/Review.vue b/src/views/Exercises/Tasks/QualifyingTests/QualifyingTest/Review.vue index 4b21f4ccf..6fc38f2c5 100644 --- a/src/views/Exercises/Tasks/QualifyingTests/QualifyingTest/Review.vue +++ b/src/views/Exercises/Tasks/QualifyingTests/QualifyingTest/Review.vue @@ -164,8 +164,8 @@ Correct: {{ testQuestion.options[testQuestion.correct].answer }}
{ +xdescribe('@/views/Exercises/Tasks/QualifyingTests/QualifyingTest/Review', () => { describe('component instance', () => { let wrapper; @@ -51,11 +115,12 @@ describe('@/views/Exercises/Tasks/QualifyingTests/QualifyingTest/Review', () => }, }); wrapper.vm.$store.state.qualifyingTest.record = mockQualifyingTest; + wrapper.vm.$store.state.qualifyingTestResponses = mockQualifyingTestResponses; + wrapper.vm.$store.state.candidate = mockQualifyingTestResponses.candidate; }); describe('template', () => { it('renders the component', () => { - console.log(wrapper.html()); expect(wrapper.exists()).toBe(true); }); });