Skip to content
Snippets Groups Projects
Commit ed43edc6 authored by minibikini's avatar minibikini
Browse files

make tests async

parent 0f0513a5
Branches
Tags
No related merge requests found
defmodule AutoLinkerTest do defmodule AutoLinkerTest do
use ExUnit.Case use ExUnit.Case, async: true
doctest AutoLinker doctest AutoLinker
test "phone number" do test "phone number" do
......
defmodule AutoLinker.BuilderTest do defmodule AutoLinker.BuilderTest do
use ExUnit.Case use ExUnit.Case, async: true
doctest AutoLinker.Builder doctest AutoLinker.Builder
import AutoLinker.Builder import AutoLinker.Builder
......
defmodule AutoLinker.ParserTest do defmodule AutoLinker.ParserTest do
use ExUnit.Case use ExUnit.Case, async: true
doctest AutoLinker.Parser doctest AutoLinker.Parser
import AutoLinker.Parser import AutoLinker.Parser
...@@ -68,7 +68,7 @@ defmodule AutoLinker.ParserTest do ...@@ -68,7 +68,7 @@ defmodule AutoLinker.ParserTest do
test "excludes html with specified class" do test "excludes html with specified class" do
text = "```Check out <div class='section'>google.com</div>```" text = "```Check out <div class='section'>google.com</div>```"
assert parse(text, exclude_pattern: "```") == text assert parse(text, exclude_patterns: ["```"]) == text
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment