{-# LANGUAGE OverloadedStrings #-} module Text.MMark.Extension.FontAwesomeSpec (spec) where import Test.Hspec import Text.MMark.Extension.FontAwesome import Text.MMark.Extension.TestUtils spec :: Spec spec = describe "fontAwesome" $ do let to = withExt fontAwesome context "when URI has the fa scheme" $ it "produces the correct HTML" $ do "" `to` "

fa:

\n" "" `to` "

\n" "" `to` "

\n" "" `to` "

\n" context "when URI has some other scheme" $ it "produces the correct HTML" $ "" `to` "

https://example.org/

\n" context "other elements" $ it "not affected" $ "Something." `to` "

Something.

\n"