notes-server/notes/create_test.go

19 lines
279 B
Go
Executable File

package notes
import (
"gitea.inhome.blapointe.com/local/notes-server/config"
"testing"
)
func TestCreate(t *testing.T) {
config.Root = "/tmp"
n := &Notes{}
resp, err := n.Create("/create/a")
if err != nil {
t.Error(err)
}
if resp != "/edit/a" {
t.Error(resp)
}
}