logo

auto_linker

AutoLinker-shim, based on https://git.pleroma.social/pleroma/auto_linker
commit: ed43edc6369985bced5f95c637c551d23b8a3f0f
parent: 0f0513a5a7b7a3c519bdf8c61bf0ce48ffdcf4d9
Author: Egor Kislitsyn <egor@kislitsyn.com>
Date:   Fri,  8 Feb 2019 17:56:05 +0700

make tests async

Diffstat:

Mtest/auto_linker_test.exs2+-
Mtest/builder_test.exs2+-
Mtest/parser_test.exs4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/auto_linker_test.exs b/test/auto_linker_test.exs @@ -1,5 +1,5 @@ defmodule AutoLinkerTest do - use ExUnit.Case + use ExUnit.Case, async: true doctest AutoLinker test "phone number" do diff --git a/test/builder_test.exs b/test/builder_test.exs @@ -1,5 +1,5 @@ defmodule AutoLinker.BuilderTest do - use ExUnit.Case + use ExUnit.Case, async: true doctest AutoLinker.Builder import AutoLinker.Builder diff --git a/test/parser_test.exs b/test/parser_test.exs @@ -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