summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2018-01-15 18:01:22 +0100
committerGitHub <noreply@github.com>2018-01-15 18:01:22 +0100
commit37bf3fe9555406eeb12485c20aa99c25065e0760 (patch)
tree474cacc73f8bd548772b0ba6a085802824e59923 /tests/Hakyll/Web
parenta88a91d06e57172840ef068f261c88e21eb60665 (diff)
downloadhakyll-37bf3fe9555406eeb12485c20aa99c25065e0760.tar.gz
Various dependency bumps
- Bump binary to 0.9 - Bump pandoc to 2.1 - Bump pandoc-citeproc to 0.13 - Bump http-types to 0.11 - Bump QuickCheck to 2.11 - Bump tasty to 1.0 - Bump tasty-hunit to 0.10 - Remove system-filepath dependency
Diffstat (limited to 'tests/Hakyll/Web')
-rw-r--r--tests/Hakyll/Web/Html/Tests.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Hakyll/Web/Html/Tests.hs b/tests/Hakyll/Web/Html/Tests.hs
index efb4099..3d0a887 100644
--- a/tests/Hakyll/Web/Html/Tests.hs
+++ b/tests/Hakyll/Web/Html/Tests.hs
@@ -7,7 +7,7 @@ module Hakyll.Web.Html.Tests
--------------------------------------------------------------------------------
import Data.Char (toUpper)
import Test.Tasty (TestTree, testGroup)
-import Test.Tasty.HUnit (assert, (@=?))
+import Test.Tasty.HUnit ((@=?))
--------------------------------------------------------------------------------
@@ -64,11 +64,11 @@ tests = testGroup "Hakyll.Web.Html.Tests" $ concat
]
, fromAssertions "isExternal"
- [ assert (isExternal "http://reddit.com")
- , assert (isExternal "https://mail.google.com")
- , assert (isExternal "//ajax.googleapis.com")
- , assert (not (isExternal "../header.png"))
- , assert (not (isExternal "/foo/index.html"))
+ [ True @=? isExternal "http://reddit.com"
+ , True @=? isExternal "https://mail.google.com"
+ , True @=? isExternal "//ajax.googleapis.com"
+ , False @=? isExternal "../header.png"
+ , False @=? isExternal "/foo/index.html"
]
, fromAssertions "stripTags"