Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kjw142857 authored Nov 7, 2023
1 parent a0bf48a commit eaaee94
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions test/cadet/assessments/question_types/voting_question_test.exs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eaaee94

Please sign in to comment.