add db/auth test
This commit is contained in:
14
tests/db_test.go
Normal file
14
tests/db_test.go
Normal file
@ -0,0 +1,14 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/leanote/leanote/app/db"
|
||||
// . "github.com/leanote/leanote/app/lea"
|
||||
// "github.com/leanote/leanote/app/service"
|
||||
// "gopkg.in/mgo.v2"
|
||||
// "fmt"
|
||||
)
|
||||
|
||||
func TestDBConnect(t *testing.T) {
|
||||
db.Init("mongodb://localhost:27017/leanote", "leanote")
|
||||
}
|
Reference in New Issue
Block a user