make tests async

This commit is contained in:
Egor Kislitsyn 2019-02-08 17:56:05 +07:00
parent 0f0513a5a7
commit ed43edc636
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
defmodule AutoLinkerTest do
use ExUnit.Case
use ExUnit.Case, async: true
doctest AutoLinker
test "phone number" do

View file

@ -1,5 +1,5 @@
defmodule AutoLinker.BuilderTest do
use ExUnit.Case
use ExUnit.Case, async: true
doctest AutoLinker.Builder
import AutoLinker.Builder

View file

@ -1,5 +1,5 @@
defmodule AutoLinker.ParserTest do
use ExUnit.Case
use ExUnit.Case, async: true
doctest AutoLinker.Parser
import AutoLinker.Parser
@ -68,7 +68,7 @@ defmodule AutoLinker.ParserTest do
test "excludes html with specified class" do
text = "```Check out <div class='section'>google.com</div>```"
assert parse(text, exclude_pattern: "```") == text
assert parse(text, exclude_patterns: ["```"]) == text
end
end