mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
committed by
Bjørn Erik Pedersen
parent
e51e761d9c
commit
88d838a971
@@ -17,6 +17,9 @@ package highlight
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/alecthomas/chroma/v2"
|
||||
"github.com/alecthomas/chroma/v2/styles"
|
||||
|
||||
qt "github.com/frankban/quicktest"
|
||||
)
|
||||
|
||||
@@ -145,3 +148,12 @@ User-Agent: foo
|
||||
c.Assert(result, qt.Contains, "}")
|
||||
})
|
||||
}
|
||||
|
||||
func TestGitHubDarkStyleIncludesNameOther(t *testing.T) {
|
||||
c := qt.New(t)
|
||||
|
||||
style := styles.Get("github-dark")
|
||||
c.Assert(style, qt.Not(qt.IsNil))
|
||||
c.Assert(style.Has(chroma.NameOther), qt.Equals, true)
|
||||
c.Assert(style.Get(chroma.NameOther).Colour.String(), qt.Equals, "#e6edf3")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user