Skip to content

Commit

Permalink
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion training-front-end/src/components/QuizResults.vue
Original file line number Diff line number Diff line change
@@ -52,7 +52,8 @@
</h2>
</div>
<p>
You got <b>{{ result_string }}</b> questions correct, for a total score of <b>{{ percentage }}%</b>, which meets the 75% or higher requirement to pass.
You got <b>{{ result_string }}</b> questions correct, for a total score of <b>{{ percentage }}%</b>, which meets the 75% or higher requirement to pass.
Your certificate has been emailed to you. Or, you may download your certificate below.
</p>
<form
:action="quiz_certificate_url"
Original file line number Diff line number Diff line change
@@ -16,7 +16,8 @@ describe("QuizResults", () => {
it('displays passing result', async () => {
const wrapper = mount(QuizResults, {props: {quiz, quizResults: passing_result, userSelections}})
expect(wrapper.text()).toContain('You passed the quiz!')
expect(wrapper.text()).toContain('You got 2 of 2 questions correct, for a total score of 100%, which meets the 75% or higher requirement to pass.')
expect(wrapper.text()).toContain('You got 2 of 2 questions correct, for a total score of 100%, which meets the 75% or higher requirement to pass. Your ' +
'certificate has been emailed to you. Or, you may download your certificate below.')
})

it('displays checkmark on passing result', async () => {

0 comments on commit b374c35

Please sign in to comment.