Migrate from templates to Gomponents (#103)
This commit is contained in:
parent
5cad4cbd33
commit
62d46c475c
104 changed files with 2768 additions and 2824 deletions
16
pkg/ui/ui_test.go
Normal file
16
pkg/ui/ui_test.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package ui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/mikestefanello/pagoda/config"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestFile(t *testing.T) {
|
||||
path := "abc.txt"
|
||||
got := File(path)
|
||||
expected := fmt.Sprintf("/%s/%s?v=%s", config.StaticPrefix, path, cacheBuster)
|
||||
assert.Equal(t, expected, got)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue