|
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)
|
|
}
|
|
}
|