./test/dolt/view/syntax_highlight_test.rb in dolt-0.2.2 vs ./test/dolt/view/syntax_highlight_test.rb in dolt-0.3.0

- old
+ new

@@ -38,9 +38,16 @@ assert_match "<span class=\"l-Scalar-Plain\">something</span>", html assert_match "<span class=\"p-Indicator\">:", html end + it "highlights an .htm file" do + html = highlight("file.htm", "<h1>Hey</h1>") + + assert_match "<span class=\"nt\">&lt;h1&gt;</span>", html + assert_match "Hey<span class=\"nt\">&lt;/h1&gt;</span>", html + end + it "highlights file with custom suffix" do Dolt::View::SyntaxHighlight.add_lexer_alias("derp", "rb") html = highlight("file.derp", "class File") assert_match "<span class=\"k\">class</span>", html