todo-server/server/ajax/ajax_test.go

21 lines
255 B
Go

package ajax
import (
"local/todo-server/config"
"testing"
)
func TestNew(t *testing.T) {
mockAjax()
}
func mockAjax() *Ajax {
config.StoreType = "map"
ajax, err := New()
if err != nil {
panic(err)
}
ajax.storageSetCur("list")
return ajax
}