Added tests for Databases and Collections

This commit is contained in:
Pijus Kamandulis
2024-02-10 20:17:33 +02:00
parent 5dc7d87fba
commit 0689119a64
6 changed files with 305 additions and 14 deletions

17
api/tests/config_test.go Normal file
View 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"
)