Avrora.TestCase.cleanup_storage-exclamation-mark

You're seeing just the function cleanup_storage-exclamation-mark, go back to Avrora.TestCase module for more information.
Link to this function

cleanup_storage!(context \\ %{})

View Source

A hook function to be used in setup-hook to clean memory storage.

## Examples:

  defmodule MyTest do
    use ExUnit.Case, async: true

    import Avrora.TestCase
    setup :cleanup_storage!

    test "memory storage was filled" do
      asset Avrora.Storage.Memory.get("some") == nil

      Avrora.Storage.Memory.put("some", 42)
      asset Avrora.Storage.Memory.get("some") == 42
    end

    test "memory storage is clean" do
      asset Avrora.Storage.Memory.get("some") == nil
    end
  end