make tests async
This commit is contained in:
parent
0f0513a5a7
commit
ed43edc636
3 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
defmodule AutoLinkerTest do
|
||||
use ExUnit.Case
|
||||
use ExUnit.Case, async: true
|
||||
doctest AutoLinker
|
||||
|
||||
test "phone number" do
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
defmodule AutoLinker.BuilderTest do
|
||||
use ExUnit.Case
|
||||
use ExUnit.Case, async: true
|
||||
doctest AutoLinker.Builder
|
||||
|
||||
import AutoLinker.Builder
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue