I want to write test cases for this plz help me with this
defmodule Landscape do
def render(assigns) do
<span><img class="poi-wrapper" src="sample.png" > Sample</span>
A good place to start when writing tests is to ask yourself, “how can this code fail?”
This code doesn’t do anything other than render a
~H template containing only static text. Is there anything to test?
Test that if you hit the endpoint, with a real http request it gives you back something with the expected “Message Board”
Edit: oh, it’s a live component.