Swap Bulma for DaisyUI (Tailwind) (#111)
This commit is contained in:
parent
fc5db0e95a
commit
c1e9baabe6
53 changed files with 1124 additions and 632 deletions
|
|
@ -4,13 +4,19 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/mikestefanello/pagoda/config"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestFile(t *testing.T) {
|
||||
func TestPublicFile(t *testing.T) {
|
||||
path := "abc.txt"
|
||||
got := File(path)
|
||||
expected := fmt.Sprintf("/%s/%s?v=%s", config.StaticPrefix, path, cacheBuster)
|
||||
got := PublicFile(path)
|
||||
expected := fmt.Sprintf("/%s/%s", "files", path)
|
||||
assert.Equal(t, expected, got)
|
||||
}
|
||||
|
||||
func TestStaticFile(t *testing.T) {
|
||||
path := "abc.txt"
|
||||
got := StaticFile(path)
|
||||
expected := fmt.Sprintf("/%s/%s?v=%s", "static", path, cacheBuster)
|
||||
assert.Equal(t, expected, got)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue