Upgrade to Bulma 1.0.2.
This commit is contained in:
parent
3eab2f5562
commit
acbc5e4bf6
7 changed files with 21 additions and 43 deletions
|
|
@ -12,22 +12,11 @@ import (
|
|||
|
||||
func TestNewFuncMap(t *testing.T) {
|
||||
f := NewFuncMap(echo.New())
|
||||
assert.NotNil(t, f["hasField"])
|
||||
assert.NotNil(t, f["link"])
|
||||
assert.NotNil(t, f["file"])
|
||||
assert.NotNil(t, f["url"])
|
||||
}
|
||||
|
||||
func TestHasField(t *testing.T) {
|
||||
type example struct {
|
||||
name string
|
||||
}
|
||||
var e example
|
||||
f := new(funcMap)
|
||||
assert.True(t, f.hasField(e, "name"))
|
||||
assert.False(t, f.hasField(e, "abcd"))
|
||||
}
|
||||
|
||||
func TestLink(t *testing.T) {
|
||||
f := new(funcMap)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue