Browse Source

make tests async

merge-requests/1/head
Egor Kislitsyn 5 years ago
parent
commit
ed43edc636
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      test/auto_linker_test.exs
  2. +1
    -1
      test/builder_test.exs
  3. +2
    -2
      test/parser_test.exs

+ 1
- 1
test/auto_linker_test.exs View File

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


+ 1
- 1
test/builder_test.exs View File

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


+ 2
- 2
test/parser_test.exs 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


Loading…
Cancel
Save