mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-20 01:10:44 +00:00
Added tests for Databases and Collections
This commit is contained in:
17
api/tests/config_test.go
Normal file
17
api/tests/config_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package tests_test
|
||||
|
||||
import (
|
||||
"net/http/httptest"
|
||||
|
||||
"github.com/pikami/cosmium/api"
|
||||
)
|
||||
|
||||
func runTestServer() *httptest.Server {
|
||||
return httptest.NewServer(api.CreateRouter())
|
||||
}
|
||||
|
||||
const (
|
||||
testAccountKey = "account-key"
|
||||
testDatabaseName = "test-db"
|
||||
testCollectionName = "test-coll"
|
||||
)
|
||||
Reference in New Issue
Block a user