mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 14:40:43 +03:00
parent
cff14144a6
commit
39261b689e
2 changed files with 16 additions and 0 deletions
|
@ -95,6 +95,16 @@ func TestHighlight(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestCanHighlight(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
c := qt.New(t)
|
||||
ns := &transform.Namespace{}
|
||||
|
||||
c.Assert(ns.CanHighlight("go"), qt.Equals, true)
|
||||
c.Assert(ns.CanHighlight("foo"), qt.Equals, false)
|
||||
}
|
||||
|
||||
func TestHTMLEscape(t *testing.T) {
|
||||
t.Parallel()
|
||||
b := hugolib.NewIntegrationTestBuilder(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue