1
0
Fork 0
mirror of https://github.com/edgurgel/httparrot synced 2025-04-05 08:12:31 -04:00
httparrot/test/request_store_test.exs
2024-06-25 21:23:13 +12:00

13 lines
356 B
Elixir

defmodule HTTParrot.RequestStoreTest do
alias HTTParrot.RequestStore
use ExUnit.Case
test "save, retrieve, clear" do
request = %{req: 1}
RequestStore.clear(:test)
RequestStore.store(:test, request)
assert RequestStore.retrieve(:test) == [request]
RequestStore.clear(:test)
assert RequestStore.retrieve(:test) == []
end
end