Added a basic homepage
This commit is contained in:
parent
d40640a648
commit
12fd3c04ca
113 changed files with 414 additions and 506 deletions
|
|
@ -1,22 +0,0 @@
|
|||
package ui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestPublicFile(t *testing.T) {
|
||||
path := "abc.txt"
|
||||
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