Skip to content

Commit

Permalink
add worker test
Browse files Browse the repository at this point in the history
  • Loading branch information
nunsez committed Mar 11, 2023
1 parent ff7065e commit ee744a2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/kaize_votes/worker_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
defmodule KaizeVotes.WorkerTest do
@moduledoc false

use ExUnit.Case, async: true
doctest KaizeVotes.Worker

alias KaizeVotes.Worker

describe "init/1" do
test "returns state with empty proposals" do
result = Worker.init([])

assert result == {:ok, %{proposals: []}}
end
end
end

0 comments on commit ee744a2

Please sign in to comment.