From eaaee94e4f425bb68887e3c43d0c550d98459b9c Mon Sep 17 00:00:00 2001 From: kjw142857 <122250318+kjw142857@users.noreply.github.com> Date: Wed, 8 Nov 2023 00:21:10 +0800 Subject: [PATCH] Add files via upload --- .../question_types/voting_question_test.exs | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/test/cadet/assessments/question_types/voting_question_test.exs b/test/cadet/assessments/question_types/voting_question_test.exs index 0c5a4f2da..43329a094 100644 --- a/test/cadet/assessments/question_types/voting_question_test.exs +++ b/test/cadet/assessments/question_types/voting_question_test.exs @@ -1,28 +1,28 @@ -defmodule Cadet.Assessments.QuestionTypes.VotingQuestionTest do - alias Cadet.Assessments.QuestionTypes.VotingQuestion - - use Cadet.ChangesetCase, entity: VotingQuestion - - describe "Changesets" do - test "valid changeset" do - assert_changeset( - %{ - content: "content", - contest_number: "C4", - reveal_hours: 48, - token_divider: 50 - }, - :valid - ) - end - - test "invalid changesets" do - assert_changeset( - %{ - content: 1 - }, - :invalid - ) - end - end -end +defmodule Cadet.Assessments.QuestionTypes.VotingQuestionTest do + alias Cadet.Assessments.QuestionTypes.VotingQuestion + + use Cadet.ChangesetCase, entity: VotingQuestion + + describe "Changesets" do + test "valid changeset" do + assert_changeset( + %{ + content: "content", + contest_number: "C4", + reveal_hours: 48, + token_divider: 50 + }, + :valid + ) + end + + test "invalid changesets" do + assert_changeset( + %{ + content: 1 + }, + :invalid + ) + end + end +end