let html = import ../nixite/html.nix; elems = import ../nixite/elems.nix; site = import ../nixite/site.nix; it = import ./it.nix; in with site; [ (it "applies a style" { expected = { "index.html" = html.tag "html" {} [ (html.tag "head" {} [(elems.title {} "foobar") (elems.stylesheet "/style.css")]) (elems.main {} "something") ]; blog = { "index.html" = html.tag "html" {} [ (html.tag "head" {} [(elems.title {} "foobar") (elems.stylesheet "/style.css")]) (elems.main {} "blogy blog") ]; }; "style.css" = '' this is a stylesheet ''; }; actual = applyStyle '' this is a stylesheet '' { "index.html" = html.tag "html" {} [ (html.tag "head" {} [(elems.title {} "foobar")]) (elems.main {} "something") ]; blog = { "index.html" = html.tag "html" {} [ (html.tag "head" {} [(elems.title {} "foobar")]) (elems.main {} "blogy blog") ]; }; }; }) ]