ex-scopes/test/shape_test.exs

13 lines
267 B
Elixir

defmodule Scopes.ShapeTest do
use ExUnit.Case, async: true
alias Scopes.Shape
describe "shape:" do
test "basic" do
obj = Shape.create([:dom, :data], data: %{value: 42})
{_head, info} = obj
assert 42 = info[:data].value
end
end
end