This commit is contained in:
Michael Snoyman 2014-09-30 13:37:04 +03:00
parent 4b85a66d93
commit c8e2aaf2a8

View File

@ -45,7 +45,7 @@ main = hspec $ do
expected = "<input name=\"_token\" type=\"hidden\" value=\"bar\" />"
in it query $ findBySelector_ html (pack query) @?= [expected]
it "descendents" $
let html = "<p><b><i>hello</i></b></p>"
let html = "<html><p><b><i>hello</i></b></p></html>"
query = "p i"
in findBySelector_ html query @?= ["<i>hello</i>"]
describe "HTML parsing" $ do